# Tzinfo\_timezone

**URL:** <https://www.ruby-forum.com/t/tzinfo-timezone/148373>\
**Category:** Rails\
**Created:** [September 12, 2008, 9:54am UTC](https://www.ruby-forum.com/t/tzinfo-timezone/148373 "2008-09-12T09:54:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ricky](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/439d5e/32.png) [@Ricky](https://www.ruby-forum.com/u/Ricky)\
**Post date:** [September 12, 2008, 9:54am UTC](https://www.ruby-forum.com/t/tzinfo-timezone/148373/1 "2008-09-12T09:54:12Z")

</div>

Hi,

I tried installing the tzinfo\_timezone plugin (and the tzinfo gem) in  
my rails 2.1 application. Now calls to date\_select fail with: wrong  
number of arguments (3 for 2).

Removing the tzinfo\_timezone plugin fixes everything, but then, of  
course, I’m left without DST support.

The first part of the application trace follows:

/Library/Ruby/Gems/1.8/gems/activesupport-2.1.0/lib/active\_support/  
core\_ext/time/zones.rb:63:in `initialize' /Library/Ruby/Gems/1.8/gems/activesupport-2.1.0/lib/active_support/ core_ext/time/zones.rb:63:in`create’  
/Library/Ruby/Gems/1.8/gems/activesupport-2.1.0/lib/active\_support/  
core\_ext/time/zones.rb:63:in `get_zone' /Library/Ruby/Gems/1.8/gems/activesupport-2.1.0/lib/active_support/ core_ext/time/zones.rb:81:in`send!’  
/Library/Ruby/Gems/1.8/gems/activesupport-2.1.0/lib/active\_support/  
core\_ext/time/zones.rb:81:in `in_time_zone' /Library/Ruby/Gems/1.8/gems/activesupport-2.1.0/lib/active_support/ values/time_zone.rb:253:in`now’  
/Library/Ruby/Gems/1.8/gems/activesupport-2.1.0/lib/active\_support/  
core\_ext/time/zones.rb:51:in `current' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_view/helpers/ date_helper.rb:678:in`default\_time\_from\_options’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action\_view/helpers/  
date\_helper.rb:618:in `date_or_time_select' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_view/helpers/ date_helper.rb:602:in`to\_date\_select\_tag\_without\_error\_wrapping’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action\_view/helpers/  
active\_record\_helper.rb:239:in `to_date_select_tag' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_view/helpers/ date_helper.rb:156:in`date\_select’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action\_view/helpers/  
date\_helper.rb:699:in `date_select' app/views/participants/_edit_profile.html.erb:73:in`\_run\_erb\_47app47views47participants47\_edit\_profile46html46erb’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action\_view/helpers/  
form\_helper.rb:317:in `fields_for' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_view/helpers/ form_helper.rb:253:in`form\_for’  
app/views/participants/\_edit\_profile.html.erb:3:in  
`\_run\_erb\_47app47views47participants47\_edit\_profile46html46erb’

Cheers,  
Ricky

---

<div class="post-metadata">

**Author:** ![Ricky](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/439d5e/32.png) [@Ricky](https://www.ruby-forum.com/u/Ricky)\
**Post date:** [September 12, 2008, 12:00pm UTC](https://www.ruby-forum.com/t/tzinfo-timezone/148373/2 "2008-09-12T12:00:15Z")

</div>

On 12 Sep 2008, at 04:56, Ricky wrote:

> Hi,
> 
> I tried installing the tzinfo\_timezone plugin (and the tzinfo gem) in  
> my rails 2.1 application. Now calls to date\_select fail with: wrong  
> number of arguments (3 for 2).

Could this be conflicting with the timezone stuff in rails 2.1 ?

Fred

---

<div class="post-metadata">

**Author:** ![Ricky](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/439d5e/32.png) [@Ricky](https://www.ruby-forum.com/u/Ricky)\
**Post date:** [September 13, 2008, 10:33am UTC](https://www.ruby-forum.com/t/tzinfo-timezone/148373/3 "2008-09-13T10:33:42Z")

</div>

Fred, you’re everywhere, man! And, yes, you’re spot on…

> Could this be conflicting with the timezone stuff in rails 2.1 ?

The problem is that there is no problem. Apparently Rails 2.1 already  
handles daylight savings properly (tzinfo gem is already bundled), and  
using tzinfo\_timezone just screws things up:  
[Mad Mimi Email Marketing](http://mad.ly/2008/04/09/rails-21-time-zone-support-an-overview/).

Ricky
