http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12669
Bug ID: 12669
Summary: "Template process failed: undef error - Invalid local
time for date in time zone"
Change sponsored?: ---
Product: Koha
Version: 3.14
Hardware: All
OS: All
Status: NEW
Severity: blocker
Priority: P5 - low
Component: Serials
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
CC: [email protected]
Created attachment 30268
-->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=30268&action=edit
Error backtrace
When accessing "Serial collection" for a given subscription the "Invalid local
time for date in time zone" error message will show if any of the dates
(publisheddate or planneddate) in the subscription is in fact a day where a
timezone offset occurred at 00:00:00.
Ex:. Date 1979-04-01 and timezone Europe/Lisbon. The day existed, but the
00:00:00 hour didn't, since after 1979-03-31 23:59:59 came 1979-04-01 01:00:00
source: http://www.timeanddate.com/time/change/portugal/lisbon?year=1979)
I've debugged the issue and found out that it occurs when applying the
KohaDates filter (lib/Koha/Template/Plugin/KohaDates.pm, specifically in the
dt_from_string call @ line 32) in the serials collection template
(intranet/htdocs/intranet-tmpl/prog/en/modules/serials/serials-collection.tt).
The expected result would be for the dates to show up correctly since we're
dealing with days and not timestamps, so 1979-04-01 should be valid even though
1979-04-01 00:00:00 isn't for the Europe/Lisbon timezone.
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/