summaryrefslogtreecommitdiff
path: root/lib/date
diff options
context:
space:
mode:
Diffstat (limited to 'lib/date')
-rw-r--r--lib/date/format.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/date/format.rb b/lib/date/format.rb
index 7aa4747ecf..f00f60ab47 100644
--- a/lib/date/format.rb
+++ b/lib/date/format.rb
@@ -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