We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfdf6db commit bf830c3Copy full SHA for bf830c3
lib/ice_cube/time_util.rb
@@ -82,7 +82,7 @@ def self.deserialize_time(time_or_hash)
82
# keep it. If it was serialized with a different offset than local TZ it
83
# will lose the zone and not support DST.
84
def self.restore_deserialized_offset(time, orig_offset_str)
85
- return time if time.respond_to?(:time_zone) or
+ return time if time.respond_to?(:time_zone) ||
86
time.getlocal(orig_offset_str).utc_offset == time.utc_offset
87
warn 'IceCube: parsed Time from nonlocal TZ. Use ActiveSupport to fix DST'
88
time.localtime(orig_offset_str)
0 commit comments