]> git.koha-community.org Git - koha.git/commit
Bug 8966 Koha::Calendar::is_holiday truncates the date
authorMaxime Pelletier <maxime.pelletier@libeo.com>
Wed, 24 Oct 2012 21:22:02 +0000 (17:22 -0400)
committerChris Cormack <chrisc@catalyst.net.nz>
Tue, 30 Oct 2012 21:49:36 +0000 (10:49 +1300)
commit6a8bba271e154eb4cd89d97a3942687e94cd8b3e
tree006af61f94ef2cf5fe5af48b42a649f2f24ef474
parent982b05f78a24a68179e7b97a0e1860d6fe29f786
Bug 8966 Koha::Calendar::is_holiday truncates the date

* Create a local copy of the date instead of calling truncate directly on the date
* Add a test to properly test that the issue is fixed

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Koha/Calendar.pm
t/Calendar.t