]> git.koha-community.org Git - koha.git/commit
Bug 23382: Truncate dates to minutes for comparison.
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Wed, 16 Oct 2019 12:08:23 +0000 (13:08 +0100)
committerLucas Gass <lucas@bywatersolutions.com>
Fri, 17 Jan 2020 14:56:32 +0000 (14:56 +0000)
commit34965273b1854b6cf645f3b53fc6f304922e0c01
tree752bc67e5a2e0f70fda567a2327ba658dd7c9bca
parentf34f979aee256eab8d1480729eb7a2f4ad3f2e7c
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>
(cherry picked from commit bbdee010aa192ec0df436a79730343df2b855ff4)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Koha/Charges/Fees.pm