Subject: | DateTime fails to set the timezone in a compared object when the compared object's time falls into the DST window |
Here's a good test case:
perl -MDateTime::Format::MySQL -e '$dt = DateTime->now;
$dt->set_time_zone("America/Los_Angeles"); print $dt; $dt2 =
DateTime::Format::MySQL->parse_datetime("2009-03-08 02:00:35"); print
$dt > $dt2'
Error is:
Invalid local time for date in time zone: America/Los_Angeles
change 2009 to 2008, no problems.
I traced this down to the comparator setting the timezone from
"floating" to "America/Los_Angeles" but didn't get much farther than that.
Please let me know if I can be of further assistance.