Bug 23382: Truncate dates to minutes for comparison.
commitbbdee010aa192ec0df436a79730343df2b855ff4
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Wed, 16 Oct 2019 12:08:23 +0000 (16 13:08 +0100)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Sat, 26 Oct 2019 06:54:17 +0000 (26 07:54 +0100)
tree22d30c39a26bfa4c1ff4bdcfe941b917bc780c47
parent8f3093c9a09c9c88b6885ac79b8273cf212f6f65
Bug 23382: Truncate dates to minutes for comparison.

It's somewhat of a mess in C4::Circulation as to when dates are
truncated and when they are not and as such Koha::Charges::Fees could
not reliably assume that the dates passed in were consistent with each
other. As such, we take the approach of always truncating to the
greatest minute smaller than the passed in dates so we are comparing
like for like.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Koha/Charges/Fees.pm