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.

Show source
Register or log in to add new notes.
November 24, 2012 - (>= v3.1.0)
0 thanks

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