Bug 23382: hours_between should match the logic of days_between
commitcb4bbdda5d6cbb634d92fee2c09c52097943a8b6
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Wed, 16 Oct 2019 12:10:43 +0000 (16 13:10 +0100)
committerLucas Gass <lucas@bywatersolutions.com>
Fri, 17 Jan 2020 14:56:55 +0000 (17 14:56 +0000)
tree408ff7e23ff2478af8b1f6737e6343d79a9cdb04
parent34965273b1854b6cf645f3b53fc6f304922e0c01
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>
(cherry picked from commit a693c7243c23f888e2fad38a4fff9f37ff4a9301)

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