summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/date.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/date.rb b/lib/date.rb
index e84eefb173..7ee7d58cae 100644
--- a/lib/date.rb
+++ b/lib/date.rb
@@ -797,7 +797,7 @@ class Date
end
end
- if g[0] == :time
+ if g && g[0] == :time
if self <= DateTime
d ||= Date.today
elem[:jd] ||= d.jd