Open atoomic opened 4 years ago
A new test confirms that the cutoff is 50 years before the current year. A modified version of the script shows that str2time("1970-12-31 23:59:59 UTC")
yields Wed Dec 31 23:59:59 2070, and str2time("1971-01-01 00:00:00 UTC")
yields Fri Jan 1 00:00:00 1971.
@Keith-S-Thompson I've PR #39 pending to fix this issue I'm waiting to get maintenance permission in order to release a fix and take care of the pending cases
I think the problem is the sliding 50-year window documented for Time::Local::timegm
, along with the Date::Parse
's unnecessary subtraction of 1900 from the year, which was explicitly given as 4 digits. (You probably already knew this.)
Migrated from rt.cpan.org#84075 (status was 'new')
Requestors:
Attachments:
From keith.s.thompson@gmail.com on 2013-03-19 18:37:42 :