Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
RT84075: Date::Parse::str2time maps date in 1963 to 2063 #8
Adds a test and a fix for this bug. The guess in RT that the bug is triggered in years that are 50 years in the past is good. str2time makes calls to timegm/timelocal which have some guessing logic for the century when given 2 digit years. To fix the bug, we keep track of whether or not we were given a 4 digit year and if so, pass a 4 digit year to timegm/timelocal so it doesn't guess.