[Koha-bugs] [Bug 12669] New: "Template process failed: undef error - Invalid local time for date in time zone"

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Jul 29 12:27:10 CEST 2014


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: koha-bugs at lists.koha-community.org
          Reporter: rolando.isidoro at gmail.com
        QA Contact: testopia at bugs.koha-community.org
                CC: colin.campbell at ptfs-europe.com

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.


More information about the Koha-bugs mailing list