class Time

def zone

If Time.zone has not been set for the current request, returns the TimeZone specified in config.time_zone.
Returns the TimeZone for the current request, if this has been set (via Time.zone=).
def zone
  Thread.current[:time_zone] || zone_default
end