[Koha-bugs] [Bug 12669] "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 Nov 25 23:11:15 CET 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12669

Tomás Cohen Arazi <tomascohen at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tomascohen at gmail.com

--- Comment #18 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
(In reply to Jonathan Druart from comment #17)
> Patches rebased (conflict with bug 13242).
> 
> I removed the useless processing (I don't remember why I parse the
> string...) and an eval.
> 
> Please obsolete my patch if you think the first patch is better alone.

I like your approach. You eval the datetime, and if it fails you just assume is
a date without time, thus a floating tz is used instead.

It might fail in some situations (date is invalid no matter the tz). Will test
it and find a border situation to write a regression test for.

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


More information about the Koha-bugs mailing list