Hi Kelly,

On Friday 02 Apr 2010 01:11:24 Kelly Jones wrote:
> This code:
> 
> perl -le 'use Date::Parse; for $tz ("MST", "MDT", "MST7MDT") {print
> str2time("04 Jul 2009 14:42:00 $tz");}'
> 
> returns:
> 
> 1246743720
> 1246740120
> 1246743720
> 
> In other words, str2time returns the same Unix time for
> MST and MST7MDT on July 4th.
> 
> That's incorrect: on July 4th, MST7MDT should equal MDT, not MST.
> 
> This isn't related to recent DST changes, since
> daylight savings time hasn't changed for July in ages.

Well, I'm not familiar with Date::Parse or the timezones in question, but if 
you can find a credible source for the claim that this is the case, then 
please file a bug on the Date::Parse bug-tracker:

https://rt.cpan.org/Public/Dist/Display.html?Name=TimeDate

Thanks for reporting it here, and I'm looking forward to a bug report on its 
bugtracker.

Regards,

        Shlomi Fish

-- 
-----------------------------------------------------------------
Shlomi Fish       http://www.shlomifish.org/
Optimising Code for Speed - http://shlom.in/optimise

Deletionists delete Wikipedia articles that they consider lame.
Chuck Norris deletes deletionists whom he considers lame.

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to