Re: issue with Dec 9 datetime in Caracas

[email protected] (Éric Cholet)
Newsgroups perl.datetime
Message-ID <[email protected]>
Le 28 déc. 07 à 18:10, Dave Rolsky a écrit :

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


As usual you were very fast. 0.71 works like a charm. Thanks a lot Dave

--
Éric Cholet
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.