instance method
utc_to_local
Ruby on Rails 4.1.16
Since v2.2.3Signature
utc_to_local(time)
Adjust the given time to the simultaneous time in the time zone represented by self. Returns a Time.utc() instance – if you want an ActiveSupport::TimeWithZone instance, use Time#in_time_zone() instead.
Parameters
-
timereq
Source
# File activesupport/lib/active_support/values/time_zone.rb, line 336
def utc_to_local(time)
tzinfo.utc_to_local(time)
end
Defined in activesupport/lib/active_support/values/time_zone.rb line 336
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::TimeZone