mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Insert in sorted order to avoid TimeZone sort
This commit is contained in:
parent
f093088433
commit
9cc8a75d84
1 changed files with 1 additions and 2 deletions
|
@ -363,14 +363,13 @@ module ActiveSupport
|
|||
"Wellington" ],
|
||||
[ 46_800, "Nuku'alofa" ]].
|
||||
each do |offset, *places|
|
||||
places.each do |place|
|
||||
places.sort.each do |place|
|
||||
place.freeze
|
||||
zone = new(place, offset)
|
||||
ZONES << zone
|
||||
ZONES_MAP[place] = zone
|
||||
end
|
||||
end
|
||||
ZONES.sort!
|
||||
ZONES.freeze
|
||||
ZONES_MAP.freeze
|
||||
|
||||
|
|
Loading…
Reference in a new issue