instance method zone

Ruby on Rails 2.3.18

Since v2.2.3 Last seen in v2.3.18

Available in: v2.2.3 v2.3.18

Signature

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 14
          def zone
            Thread.current[:time_zone] || zone_default
          end

Defined in activesupport/lib/active_support/core_ext/time/zones.rb line 14 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveSupport::CoreExtensions::Time::Zones::ClassMethods

Type at least 2 characters to search.

↑↓ navigate · open · esc close