America/Sao_Paolo timezone dying for 2008-10-19

[email protected] ("Kevin M. Goess")
Newsgroups perl.datetime
Message-ID <[email protected]>
We recently ran into a problem with DateTime::TimeZone dying on
2008-10-12 in the America/Sao_Paolo timezone:

perl  -Ilib -MDateTime -MDateTime::TimeZone -e 'DateTime->new(time_zone
=> "America/Sao_Paulo", year  => 2008, month => 10, day => 12)'
Invalid local time for date in time zone: America/Sao_Paulo

Upgrading to the very latest version of DateTime::TimeZone (released
yesterday) shows that the 12th now works, but the library fails on 19th
of October:

Any idea what might be going on?  Suggested fixes or workarounds?

$ perl -Ilib -MDateTime -MDateTime::TimeZone -e '
print DateTime->VERSION," ",DateTime::TimeZone->VERSION, "\n";
  foreach $d (1..31) {
     print "$d\n"; DateTime->new(time_zone => "America/Sao_Paulo",
                       year  => 2008, month => 10,day   => $d)}'
0.4305 0.81
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Invalid local time for date in time zone: America/Sao_Paulo

-- 
Happy Trails . . .

Kevin M. Goess
(and Anne and Frank)
904 Carmel Ave.
Albany, CA  94706
(510) 525-5217
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.