I am running Rails 3.0.3. I am using the below line of code to
generate a list of possible time zones.

<%= form.time_zone_select :time_zone, ActiveSupport::TimeZone.us_zones
%>

However, the options at least for the US are off by one hour. It for
example lists the Eastern Time zone as +5 relative to GMT however it
should be +4. http://www.worldtimeserver.com/current_time_in_US-MI.aspx

When I go to the console, it recognizes that given that I am in the
eastern time zone, it is +4.

irb(main):046:0> Time.now
=> Tue Apr 12 21:52:48 -0400 2011
irb(main):047:0> Time.now.utc
=> Wed Apr 13 01:52:55 UTC 2011

I do not recall running into such an issue on Rails 2.x on this app.
However, it was never in production so perhaps it existed there also?

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to