[Koha-bugs] [Bug 16376] Koha::Calendar->is_holiday date truncation creates fatal errors for TZ America/Santiago

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu May 26 11:36:28 CEST 2016


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16376

--- Comment #11 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
(In reply to David Cook from comment #9)
> Using a floating zone allows us to use the same day, month, year
> for comparison purposes without running into the possibility of
> creating an invalid local time and thus a fatal software error.

Ok you will remove the software error, but I am not sure it's the way to go.

Currently the dates are stored in local time (so with the tz), if we want to
switch to floating time zones (what we should do at some point!) I think we
should recalculate all dates present in DB.
An easy workaround would be to use Koha::DateUtils, which deals (at least try
to) with invalid dates due du DST.

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.


More information about the Koha-bugs mailing list