Country
andTimezone
data is now loaded into class rather than instance variables. This makesTimezone
links more efficient and saves memory if creating specificTimezone
andCountry
classes directly.TimezonePeriod
zone_identifier
is now defined as a symbol to save memory (was previously a string).TimezonePeriod
zone_identifiers
that were previously''
are now:Unknown
.Timezone
andCountry
instances can now be returned usingTimezone.new(identifier)
andCountry.new(identifier)
. When passed an identifier, thenew
method callsget
to return an instance of the specified timezone or country.- Added new class methods to
Timezone
to return sets of zones and identifiers.
Thanks to Scott Barron of Lunchbox Software for the suggestions in his article about using TZInfo with Rails (https://web.archive.org/web/20060425190845/http://lunchroom.lunchboxsoftware.com/pages/tzinfo_rails)