1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

yyyy/mm is not an acceptable format.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4464 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
tadf 2003-08-31 01:26:29 +00:00
parent 84c506745a
commit 782b6ceac3
3 changed files with 8 additions and 4 deletions

View file

@ -356,7 +356,7 @@ class Date
end
end
if $1.size > 2
if $3 && $1.size > 2
comp = false
year, mon, mday = mon, mday, year
end