Bug #2378: Regression in ParseDate.parsedate('nn-nn')
http://redmine.ruby-lang.org/issues/show/2378

Author: Vladimir Sizikov
Status: Open, Priority: Normal
ruby -v: ruby 1.8.7 (2009-06-12 patchlevel 174) [i386-mswin32]

On MRI 1.8.6, ParseDate.parsedate('nn-nn') returns sensible data:

ruby -rparsedate -e "p ParseDate.parsedate('08-09')"
ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32]
[8, 9, nil, nil, nil, nil, nil, nil]

Essentially, it treats nn-nn as yy-mm.

In MRI 1.8.7, there is a regression, and the returned values now are less sensible:

ruby 1.8.7 (2009-06-12 patchlevel 174) [i386-mswin32]
[nil, nil, 8, nil, nil, nil, "-09", nil]

Day and weird zone, huh?

This also leads to RubySpec failures on MRI 1.8.7.


----------------------------------------
http://redmine.ruby-lang.org