class Time

def to_time

on the setting of +ActiveSupport.to_time_preserves_timezone+.
Either return +self+ or the time in the local system timezone depending
def to_time
  preserve_timezone ? self : getlocal
end