Skip to content

Commit

Permalink
Remove unused active_support_local_zone method
Browse files Browse the repository at this point in the history
Since rails#53546 this method is not used.
  • Loading branch information
ghiculescu authored Nov 6, 2024
1 parent c7de35a commit 6e4846f
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions activesupport/lib/active_support/core_ext/time/compatibility.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,4 @@ def system_local_time?
(zone != "UTC" || active_support_local_zone == "UTC")
end
end

@@active_support_local_tz = nil

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
end

0 comments on commit 6e4846f

Please sign in to comment.