Subject: | Fails to parse "May 1, 2011" correctly |
$ perl -MTime::ParseDate -E 'say parsedate("May 1, 2011")'
1367384400, 2011
", 2011" was not parsed. 1367384400 is May 1, 2013.
Other months work fine:
$ perl -MTime::ParseDate -E 'say parsedate("June 1, 2011")'
1306904400
$ perl -MTime::ParseDate -E 'say parsedate("April 1, 2011")'
1301634000
Using WHOLE => 1 just makes the parse fail:
$ perl -MTime::ParseDate -E 'say parsedate("May 1, 2011", WHOLE => 1)'
characters left over after parse
I'm guessing that "mmm dd" is taking precedence over "mmmm dd, yyyy". Since May is only 3 letters, it has no abbreviation.