Forum: Ruby on Rails TZInfo included in Rails 2.2.2 vs. version on RubyForge

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
matto (Guest)
on 2009-03-14 14:44
(Received via mailing list)
I downloaded version 0.3.12 of TZInfo from [1], and observed that it
has a very robust set of timezones including, for example, 'America/

irb(main):001:0> require 'rubygems'
=> false
irb(main):002:0> require 'tzinfo'
=> true
irb(main):003:0> TZInfo::Timezone.get('America/Anchorage')
=> #<TZInfo::DataTimezone: America/Anchorage>

Within Rails 2.2, however, which appears to have the same version of
the gem (see the error that follows), the set of timezones is far more

irb(main):001:0> require 'rubygems'
=> true
irb(main):002:0> require 'active_support'
=> true
irb(main):003:0> TZInfo::Timezone.get('America/Anchorage')
TZInfo::InvalidTimezoneIdentifier: no such file to load -- tzinfo/
        from /usr/local/lib/ruby/gems/gems/activesupport-2.2.2/lib/
active_support/vendor/tzinfo-0.3.12/tzinfo/timezone.rb:108:in `get'
        from (irb):3

Perhaps the maintainers of TZInfo didn't bump up the version number of
the gem after adding additional timezone data?


Matt J. (Guest)
on 2009-03-15 21:11
(Received via mailing list)
The bundled TZInfo is intentionally limited in size. If you have the
full version installed,
Rails will load that instead. See also this ticket:

--Matt J.
This topic is locked and can not be replied to.