]> git.koha-community.org Git - koha.git/commit
Bug 9031: (QA follow-up) Pass the same timezone in Calendar.t
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Thu, 26 Oct 2017 07:13:38 +0000 (09:13 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 27 Oct 2017 17:09:03 +0000 (14:09 -0300)
commit9ac7f85375f9474c3f43b18ef6cead0c9a44d53f
tree67b92a9decd25cda6c09c7bb80f6052250455f93
parenta3c4ce01b36bacf1169bd1897bf7f22a4ab992a8
Bug 9031: (QA follow-up) Pass the same timezone in Calendar.t

We do not need to change $ENV{TZ} or call tzset.
Pass $tz too for the second date.
Replace checking the datetime hash by delta calls.
Replacing the number of minutes.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
We will still crash with:
Invalid local time for date in time zone: America/New_York
But the changes in Calendar.pm will now resolve that.

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
t/db_dependent/Calendar.t