]> git.koha-community.org Git - koha.git/commit
Bug 25665: (Bug 23382: (RM follow-up) Revert "hours_between should match...")
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 5 Nov 2019 14:18:28 +0000 (14:18 +0000)
committerVictor Grousset/tuxayo <victor@tuxayo.net>
Tue, 27 Oct 2020 12:24:44 +0000 (13:24 +0100)
commit0d3bb28015cdd17d40f1fb613f58cafea20a81a0
tree8102b11b55fa03f0ed3483107b4db6dd3acfd8a1
parent78b6e0a87e67659a13092dedd748153bbeb30e28
Bug 25665: (Bug 23382: (RM follow-up) Revert "hours_between should match...")

This reverts commit a693c7243c23f888e2fad38a4fff9f37ff4a9301 which
caused regressions.

The original loop compared start date to end date and iterated all the
way to start date equals end date. The alternate implimentation
inadvertantly looped from start date, skipped the first day then
iterated up to one day beyond end date.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Koha/Calendar.pm