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:
parent
84c506745a
commit
782b6ceac3
3 changed files with 8 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue