Subject: | ParseDate() unexpected behavior with certain partial date constructs |
Date: | Fri, 27 Mar 2015 07:20:45 -0600 |
To: | Sullivan Beck via RT <bug-Date-Manip [...] rt.cpan.org> |
From: | Glenn Golden <gdg [...] zplane.com> |
The following examples were prepared with Date::Manip::DM6 version
"6.49 [america/denver]", running under perl 5.20.2.
(The ParseDate() results are shown as-is except for an extra space inserted
between date and time just for clarity.)
Input ParseDate result
========= =================
2015-06 20150601 00:00:00 # As expected: DoM defaults to 01
June 2015 20150620 00:00:00 # DoM inconsistent w/above. Also, DoM seems
# to be taken from the first 2 digits of year.
# Year is correct.
June 1712 20120617 00:00:00 # Like above, again suggesting that DoM seems
# to be taken from first 2 digits of year,
# but now year is wrong too.
2095-06 20950601 00:00:00 # As expected: DoM defaults to 01,
June 2095 19950620 00:00:00 # Again, DoM seems to be taken from first 2
# digits of year, and year is also wrong.