[Koha-bugs] [Bug 16376] Koha::Calendar->is_holiday date truncation creates fatal errors for TZ America/Santiago
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Apr 28 08:35:14 CEST 2016
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16376
David Cook <dcook at prosentient.com.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |larry at opengeek.cl
--- Comment #2 from David Cook <dcook at prosentient.com.au> ---
This problem was brought to me by Larry Letelier who found that he couldn't use
overdue_notices.pl because of this error.
You can replicate it by creating a Koha::Calendar, and then running the
following:
use DateTime;
use Koha::DateUtils;
use Koha::Calendar;
my $dt = DateTime->new(
month => 9,
year => 2015,
day => 6,
hour => 12,
minute => 00,
second => 00,
time_zone => 'America/Santiago',
);
my $now = DateTime->now();
my $calendar = Koha::Calendar->new(branchcode => "MAIN");
$calendar->days_between($dt, $now);
Run that using the America/Santiago TZ environmental variable:
TZ=America/Santiago perl issues.pl
--
You should get the "Invalid local time for date in time zone: America/Santiago"
message and the script should die.
--
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