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:
commit
f1e89628fe
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue