[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
Thu Jul 31 17:10:20 CEST 2014


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

--- Comment #2 from Rolando Isidoro <rolando.isidoro at gmail.com> ---
Hey Colin, following on your comment I tried to fix the problem on my own and I
think I narrowed it to 1 code entry:

$dt->set_time_zone( C4::Context->tz ); @
https://github.com/digibib/koha-work/blob/master/Koha/DateUtils.pm#L126

Since my knowledge regarding Koha's codebase is limited I now have doubts on
how to proceed, but I think it would be as simple as replacing that line for:

my $tz = $dateonly ? DateTime::TimeZone->new(name => 'floating') :
C4::Context->tz;
$dt->set_time_zone( $tz );

What's your take on this solution?

-- 
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