]> 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)
committerPaul Poulain <paul.poulain@biblibre.com>
Mon, 29 Oct 2012 17:27:04 +0000 (18:27 +0100)
commit5c7fae8e89a07411c8f2e6c002bdbd2017117b53
tree9d53e23633f56042715cce1add711e549472dd25
parentf47dceb1514089dd0bf53de4e2706032bb7f351e
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>
Koha/Calendar.pm
t/Calendar.t