Subject: | Invalid date times not handled properly (as per RFC 5545) |
Howdy,
perl -MDateTime::Format::ICal -e 'DateTime::Format::ICal->parse_datetime("TZID=America/New_York:20070311T023000")'
Invalid local time for date in time zone: America/New_York
RFC 5545 (which obsoletes 2445) says (https://tools.ietf.org/html/rfc5545#page-34):
[...]
If the local time described does not occur (when
changing from standard to daylight time), the DATE-TIME value is
interpreted using the UTC offset before the gap in local times.
Thus, TZID=America/New_York:20070311T023000 indicates March 11,
2007 at 3:30 A.M. EDT (UTC-04:00), one hour after 1:30 A.M. EST
(UTC-05:00).
Thanks!
-- Matthew Horsfall (alh)