]> git.koha-community.org Git - koha.git/commit
Bug 23382: hours_between should match the logic of days_between
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Wed, 16 Oct 2019 12:10:43 +0000 (13:10 +0100)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Sat, 26 Oct 2019 06:54:22 +0000 (07:54 +0100)
commita693c7243c23f888e2fad38a4fff9f37ff4a9301
treed2c743c1ab717f9d07d793730247fd74ad9f9020
parentbbdee010aa192ec0df436a79730343df2b855ff4
Bug 23382: hours_between should match the logic of days_between

The loops for subtraction holiday dates in hours_between and
days_between differed and as such their handling of start and end
boundaries for days also differed.  This patch makes them handle the
boundary days consistently.

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/Calendar.pm