]> git.koha-community.org Git - koha.git/commit
Bug 12669: Use floating timezone when handling dates without hours, minutes and seconds.
authorRolando Isidoro <rolando.isidoro@gmail.com>
Fri, 1 Aug 2014 08:42:30 +0000 (09:42 +0100)
committerMason James <mtj@kohaaloha.com>
Fri, 28 Aug 2015 05:13:21 +0000 (17:13 +1200)
commitef48b139cfd72ae2ddba0d8b6a30b27fdabff71b
tree20cad03bdee7ab838b258c81bdf1e3ad1e155cb7
parent29181dae407a1828ae9e29775aefbb0c72f860e1
Bug 12669: Use floating timezone when handling dates without hours, minutes and seconds.

Test plan:

1. Create a new serial record or pick an existing one;
2. Add a "New subscription" and set the "First issue publication date"
   and "Frequency" values so that the "Planned date" for a given issue
   hits a day where a transition to Daylight Saving Time (DST) occurs

   ex:. 1979-04-01 in Europe/Lisbon (http://www.timeanddate.com/time/change/portugal/lisbon?year=1979)
   ... use this website page as a source http://www.timeanddate.com/time/dst/2014.html
   to find a suitable transition to DST in your timezone in the current year.

3. From the "Subscription detail" page in Koha for the given record click
   the "Serial collection" link on the left side context menu.

Expected result:
Prior to applying the patch the error described in this bug report should occur.
After the patch is applied the "Serial collection" page should load correctly.

Signed-off-by: Colin Campbell <colin.campbell@ptfs-europe.com>
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Mason James <mtj@kohaaloha.com>
Koha/DateUtils.pm
Koha/Template/Plugin/KohaDates.pm