On Fri, 28 Dec 2007, Éric Cholet wrote:
Hi,
I ran into the following problem with a specific datetime, and the Caracas
time zone:
my $d = DateTime->new(year => 2007, month => 12, day => 9, hour => 11, minute
=> 8, time_zone => 'UTC');
print "$d\n";
$d->set(locale => 'fr');
print "$d\n";
$d->set_time_zone('America/Caracas');
print "$d\n";
$d->set(locale => 'fr');
print "$d\n";
the above script outputs:
2007-12-09T11:08:00
2007-12-09T11:08:00
2007-12-09T06:38:00
Invalid local time for date in time zone: America/Caracas
This is a rather huge bug in the time zone generation code. I hope to have
a fix out this weekend at the latest. I'm really surprised it took this
long to be noticed.
-dave
/*===================================================
VegGuide.Org www.BookIRead.com
Your guide to all that's veg. My book blog
===================================================*/