Time::Local bug?

[email protected] (Jari Eskelinen)
Newsgroups perl.datetime
Message-ID <[email protected]>
Hi!

I am running ActivePerl v5.8.8 on Windows. Recently I found that
software using Time::Local module got broken. New version of Time::Local
calculates times wrong I think. In example (having Time::Local version
1.11 in folder 1.11 and 1.1901 in folder 1.1901):

C:\TEMP>perl -e "use lib '1.11'; use Time::Local; print timelocal('00',
'00', '02', '01', '00', '1970')"
0
C:\TEMP>perl -e "use lib '1.1901'; use Time::Local; print imelocal('00',
'00', '02', '01', '00', '1970')"
-3600

I live in Finland, our time zone is EET so it's +02:00 to GMT (+03:00 in
summer when DST kicks in). 1970-01-01 02:00:00 EET should be 1970-01-01
00:00:00 GMT I think?

Time::Local 1.11 calculates this right, 1.1901 does not. I solved my
problem by using older version of Time::Local, but I just thought that
this may interest others as well...

Best regards,
  Jari Eskelinen
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.