Subject: | 1895-02-01 Australia/Melbourne - Invalid local time for date in time zone: Australia/Melbourne |
Date: | Sun, 15 Mar 2015 23:15:30 +1100 |
To: | bug-DateTime [...] rt.cpan.org |
From: | brett rann <brettrann [...] gmail.com> |
Using DateTime-1.85:
Show quoted text
> perl -e 'use DateTime; print new DateTime(year => 1895, month => 02, day
=> 01, time_zone => "Australia/Melbourne"), $/;'
Show quoted text> Invalid local time for date in time zone: Australia/Melbourne
It works with surrounding days, months, years.
I note this code in:
perl5/DateTime/TimeZone/Australia/Melbourne.pm
20 my $spans =
21 [
22 [
23 DateTime::TimeZone::NEG_INFINITY, # utc_start
24 59771571608, # utc_end 1895-01-31 14:20:08 (Thu)
25 DateTime::TimeZone::NEG_INFINITY, # local_start
26 59771606400, # local_end 1895-02-01 00:00:00 (Fri)
27 34792,
28 0,
29 'LMT',
30 ],
31 [
32 59771571608, # utc_start 1895-01-31 14:20:08 (Thu)
33 60463116060, # utc_end 1916-12-31 14:01:00 (Sun)
34 59771607608, # local_start 1895-02-01 00:20:08 (Fri)
35 60463152060, # local_end 1917-01-01 00:01:00 (Mon)
36 36000,
37 0,
38 'AEST',
39 ],
Something is possibly not right there.