method
utc_to_local
v4.2.9 -
Show latest stable
- Class:
ActiveSupport::TimeZone
utc_to_local(time)public
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.