This project is archived and is in readonly mode.

#6593 new

ActiveSupport::TimeZone.all is not updated when new time zones are added

Reported by calamitas | March 18th, 2011 @ 09:04 AM

ActiveSupport::TimeZone.all returns all time zones defined up to the first call to ActiveSupport::TimeZone.all. Time zones added after that first call will never be returned.

The same is true for ActiveSupport::TimeZone.us_zones.

This means that e.g., form helpers will not display time zones added after the first ever call to ActiveSupport::TimeZone.all.

We noticed this with Rails 3.0.4, but the problem appears to be still present in the master.

No comments found

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href=""></a>

People watching this ticket