instance method
active_support_local_zone
Ruby on Rails 8.0.5.1
Since v7.2.3.2 Last seen in v8.0.5.1 Private — implementation detail, not part of the public APIAvailable in: v7.2.3.2 v8.0.5.1
Signature
active_support_local_zone()
No documentation comment.
Source
# File activesupport/lib/active_support/core_ext/time/compatibility.rb, line 32
def active_support_local_zone
@@active_support_local_zone = nil if @@active_support_local_tz != ENV["TZ"]
@@active_support_local_zone ||=
begin
@@active_support_local_tz = ENV["TZ"]
Time.new.zone
end
end
Defined in activesupport/lib/active_support/core_ext/time/compatibility.rb line 32
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Time