[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:32:07 CEST 2016


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16376

--- Comment #1 from David Cook <dcook at prosentient.com.au> ---
You can easily verify this with the following Perl code:

use DateTime;

my $dt = DateTime->new(
    month => 9,
    year => 2015,
    day => 6,
    hour => 12,
    minute => 00,
    second => 00,
    time_zone => 'America/Santiago',
);
print "DateTime:\n";
print $dt."\n";
print "Timezone:\n";
print $dt->time_zone()->name."\n";
print "Let's truncate...\n";
$dt->truncate( to => 'day');


TZ=America/Santiago perl issues.pl

DateTime:
2015-09-06T12:00:00
Timezone:
America/Santiago
Let's truncate...
Invalid local time for date in time zone: America/Santiago

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