method

to_time

to_time()
public

Returns an instance of Time, either with the same timezone as self, 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

dancinglightning ยท Nov 24, 2012

From utc:

Returns a Time or DateTime instance that represents the time in UTC.

Seems to have changed in 3.1.0