class method
self.zone
Ruby on Rails 4.0.13
Since v3.0.20Signature
self.zone()
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.
Source
# File activesupport/lib/active_support/core_ext/time/zones.rb, line 10
def zone
Thread.current[:time_zone] || zone_default
end
Defined in activesupport/lib/active_support/core_ext/time/zones.rb line 10
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Time