Method: Time.zone
- Defined in:
- lib/active_support/core_ext/time/zones.rb
.zone ⇒ Object
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.
14 15 16 |
# File 'lib/active_support/core_ext/time/zones.rb', line 14 def zone ::ActiveSupport::IsolatedExecutionState[:time_zone] || zone_default end |