[Koha-devel] Invalid local time for date in time zone: America/Santiago

Larry Letelier larry at opengeek.cl
Wed Apr 27 07:09:02 CEST 2016


Hi people,

We have a 'little' issue with the overdue aka notifications process.

# pwd
/usr/share/koha/bin/cronjobs

# ./overdue_notices.pl -t
Invalid local time for date in time zone: America/Santiago

perl -d overdue_notices.pl -t

Loading DB routines from perl5db.pl version 1.33
Editor support available.

Enter h or `h h' for help, or `man perldebug' for more help.

main::(overdue_notices.pl:278): my $dbh = C4::Context->dbh();
  DB<1> c

Invalid local time for date in time zone: America/Santiago

 at /usr/share/perl5/DateTime/TimeZone.pm line 198
DateTime::TimeZone::_span_for_datetime('DateTime::TimeZone::America::Santiago=HASH(0x60cfce8)',
'local', 'DateTime=HASH(0x617e938)') called at
/usr/share/perl5/DateTime/TimeZone.pm line 157
DateTime::TimeZone::offset_for_local_datetime('DateTime::TimeZone::America::Santiago=HASH(0x60cfce8)',
'DateTime=HASH(0x617e938)') called at /usr/lib/perl5/DateTime.pm line 930
DateTime::_offset_for_local_datetime('DateTime=HASH(0x617e938)') called at
/usr/lib/perl5/DateTime.pm line 375
DateTime::_calc_utc_rd('DateTime=HASH(0x617e938)') called at
/usr/lib/perl5/DateTime.pm line 263
DateTime::_new('DateTime', 'hour', 20, 'second', 0, 'month', 9, 'locale',
'DateTime::Locale::en_US=HASH(0x1e7eac8)', ...) called at
/usr/lib/perl5/DateTime.pm line 299
DateTime::_new_from_self('DateTime=HASH(0x6183808)', 'hour', 0, 'minute',
0, 'second', 0, 'month', 9, ...) called at /usr/lib/perl5/DateTime.pm line
1933
DateTime::truncate(undef, 'to', 'day') called at
/usr/share/koha/lib/Koha/Calendar.pm line 214
Koha::Calendar::is_holiday('Koha::Calendar=HASH(0x619bc20)',
'DateTime=HASH(0x6192ad0)') called at /usr/share/koha/lib/Koha/Calendar.pm
line 290
Koha::Calendar::days_between('Koha::Calendar=HASH(0x619bc20)',
'DateTime=HASH(0x61a5b90)', 'DateTime=HASH(0x60a7ce0)') called at
overdue_notices.pl line 538
Debugged program terminated.  Use q to quit or R to restart,
  use o inhibit_exit to avoid stopping after program termination,
  h q, h R or h o to get additional info.
  DB<1> q

This is a Koha 3.2008000

In MySQL and in enviroment, tzdata, TZ='America/Santiago' is set.


Any idea with this ?

Thanks for read this,
-Larry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20160427/11f1fa73/attachment.html>


More information about the Koha-devel mailing list