summaryrefslogtreecommitdiff
path: root/lib/time.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/time.rb')
-rw-r--r--lib/time.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/time.rb b/lib/time.rb
index 0bfd9a9a45..a2ada7728b 100644
--- a/lib/time.rb
+++ b/lib/time.rb
@@ -267,7 +267,7 @@ class Time
return make_time(date, year, nil, mon, day, hour, min, sec, sec_fraction, zone, now)
end
- if now
+ if now and now.respond_to?(:getlocal)
if off
now = now.getlocal(off) if now.utc_offset != off
else