Bug 23382: (RM follow-up) Revert "hours_between should match..."
commit622d4f713be7d3984443f4c5d3a25fd88671fa82
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 5 Nov 2019 14:18:28 +0000 (5 14:18 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 5 Nov 2019 14:19:49 +0000 (5 14:19 +0000)
tree077ef070a67aa21f5995e2cad6ae463898e6efc6
parentdda82b52a77411e3ab76b262a0c0a1d1d1a21638
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>
Koha/Calendar.pm