method
zone
v4.1.8 -
Show latest stable
- Class:
Time
zone()public
Returns the TimeZone for the current request, if this has been set (via Time.zone=). If Time.zone has not been set for the current request, returns the TimeZone specified in config.time_zone.
1Note
TimeZone in ActiveSupport
This seems to return ActiveSupport::TimeZone and not ::TimeZone as of v.3.0.0 and later.