aboutsummaryrefslogtreecommitdiffstats
path: root/lib/time.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/time.rb')
-rw-r--r--lib/time.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/time.rb b/lib/time.rb
index cb37c4e562..9d4e9cccba 100644
--- a/lib/time.rb
+++ b/lib/time.rb
@@ -258,11 +258,7 @@ class Time
year, mon, day, hour, min, sec =
apply_offset(year, mon, day, hour, min, sec, off)
t = self.utc(year, mon, day, hour, min, sec, usec)
- if zone_utc?(zone)
- t.utc
- else
- t.localtime(off)
- end
+ t.localtime(off) if !zone_utc?(zone)
t
else
self.local(year, mon, day, hour, min, sec, usec)