Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rails BST timezone implementation

Does anyone know how i can use BST for config.time_zone in my rails config/environment.rb file?

At the moment i have left it as UTC and i'm thinking of adding BST to the list of supported timezones, and then extending the Time class to respect this (> last sunday of X month + 1hr)

Where can i find the list of supported timezones?

Searching around i have found alot of complaints but not alot of answers. this will be up on guthub asap.

Cheers, Dougle

like image 305
Question Mark Avatar asked Sep 23 '26 09:09

Question Mark


1 Answers

rake time:zones:all

You'll probably see a time zone named London, which is just UTC +00:00, but should handle UK daylight saving time properly.

like image 165
molf Avatar answered Sep 26 '26 00:09

molf



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!