method
utc_to_local
v2.3.8 -
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.