Skip to content
Browse files

Insert in sorted order to avoid TimeZone sort

  • Loading branch information...
1 parent f093088 commit 9cc8a75d84a4a5c52071b5c911f5afe1b577f760 @jeremy jeremy committed Apr 7, 2009
Showing with 1 addition and 2 deletions.
  1. +1 −2 activesupport/lib/active_support/values/time_zone.rb
View
3 activesupport/lib/active_support/values/time_zone.rb
@@ -363,14 +363,13 @@ def tzinfo
"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

0 comments on commit 9cc8a75

Please sign in to comment.
Something went wrong with that request. Please try again.