Search code examples
ruby-on-railsrake

Rake Time Zones


How would I add a new time zone to the list of time zones?

If I would have to simply add a time zone to my system, why doesn't it appear on the list:

rake time:zones:all

As mentioned by ranja below, I tried to use ActiveSupport with time zones.

So I open up the console

user@host:/var/www/project$ irb
irb(main):001:0> require 'active_support'
=> true
irb(main):002:0>

But what should I use next? And will the new time zone be lost? How would I implement a permanent new ruby time zone which would be available on all my aps? Thanks so far!


Solution

  • In your rails console type below command , you can get list of name

         ActiveSupport::TimeZone.all.map(&:name)