method
to_time
rails latest stable - Class:
ActiveSupport::TimeWithZone
to_time()public
Returns an instance of Time, either with the same UTC offset as self or in the local system timezone depending on the setting of ActiveSupport.to_time_preserves_timezone.
1Note
Actually one can see from the source that it just calls utc
From utc:
Returns a Time or DateTime instance that represents the time in UTC.
Seems to have changed in 3.1.0