1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #30797 from y-yagi/fix_formatting_of_use_zone

Fix formatting of `Time.use_zone` [ci skip]
This commit is contained in:
Ryuta Kamizono 2017-10-04 18:26:10 +09:00 committed by GitHub
commit f1e89628fe

View file

@ -55,10 +55,10 @@ class Time
# end
# end
#
# NOTE: This won't affect any <tt>ActiveSupport::TimeWithZone</tt>
# objects that have already been created, e.g. any model timestamp
# attributes that have been read before the block will remain in
# the application's default timezone.
# NOTE: This won't affect any <tt>ActiveSupport::TimeWithZone</tt>
# objects that have already been created, e.g. any model timestamp
# attributes that have been read before the block will remain in
# the application's default timezone.
def use_zone(time_zone)
new_zone = find_zone!(time_zone)
begin