This method is deprecated or moved on the latest stable version.
The last existing version (v2.3.8) is shown here.
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.
# File activesupport/lib/active_support/core_ext/time/zones.rb, line 14
def zone
Thread.current[:time_zone] || zone_default
end