mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
update a comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45816 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e1fefb28e3
commit
d9087ffebc
1 changed files with 2 additions and 2 deletions
|
@ -178,8 +178,8 @@ class Time
|
||||||
if zone_utc?(zone)
|
if zone_utc?(zone)
|
||||||
t.utc
|
t.utc
|
||||||
elsif offset ||= zone_offset(zone)
|
elsif offset ||= zone_offset(zone)
|
||||||
# Prefer the local (real) timezone over the fixed offset (artificial)
|
# Prefer the local timezone over the fixed offset timezone because
|
||||||
# timezone.
|
# the former is a real timezone and latter is an artificial timezone.
|
||||||
t.localtime
|
t.localtime
|
||||||
if t.utc_offset != offset
|
if t.utc_offset != offset
|
||||||
# Use the fixed offset timezone only if the local timezone cannot
|
# Use the fixed offset timezone only if the local timezone cannot
|
||||||
|
|
Loading…
Reference in a new issue