# Rails 2.1.0 and tzinfo plugin

**URL:** <https://www.ruby-forum.com/t/rails-2-1-0-and-tzinfo-plugin/143185>\
**Category:** Rails\
**Created:** [July 16, 2008, 4:37am UTC](https://www.ruby-forum.com/t/rails-2-1-0-and-tzinfo-plugin/143185 "2008-07-16T04:37:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bruparel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/e47774/32.png) [@bruparel](https://www.ruby-forum.com/u/bruparel)\
**Post date:** [July 16, 2008, 4:37am UTC](https://www.ruby-forum.com/t/rails-2-1-0-and-tzinfo-plugin/143185/1 "2008-07-16T04:37:02Z")

</div>

I am upgrading a Rails 1.2.6 app to Rails 2.1.0 that had used tzinfo gem  
to manage time zones. Time zone support is built into Rails 2.1.0 and  
is based on the tzinfo gem. However, it is slightly different (I do not  
know how slightly) and causes a time based test to fail that passes in  
Rails 2.0.2 (since it did not have Time Zone support, it uses the tzinfo  
gem and the test works).

If there is an easy way around this problem then that would be  
excellent. In lieu of that, is there a way that I can coax rails to  
load the tzinfo gem (freeze it into the vendor directory?) ahead of its  
built-in timezone support? I might just go with it to production until  
I figure out an upgrade plan.

Thanks in advance for your time.

Bharat
