Actions
Bug #10614
closedstrpdate and Leap Days
Bug #10614:
strpdate and Leap Days
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.1.5p273 (2014-11-13 revision 48405) [x86_64-darwin14.0]
Backport:
Description
I'm experiencing an issue parsing dates and leap days.
When the format string includes the year, everything works as expected:
Parsing a date without a year assumes this year:
Here's my issue, parsing a leap day without a year assumes I mean this year, and this year is not a leap year:
Thinking about it now, I'm not sure what the expected behavior should be. Python assumes 1900 under the same circumstances, and it doesn't throw an exception.
Actions