Rails BST时区实施

问题描述:

有人知道我如何在Rails config/environment.rb文件中将BST用于config.time_zone吗?

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

此刻,我将其保留为UTC,我正在考虑将BST添加到支持的时区列表中,然后扩展Time类以遵守此规定(> X月份的最后一个星期日+ 1hr)

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?

四处搜寻,我发现有很多抱怨,但没有很多答案.这将在guthub上尽快完成.

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

干杯,豆豆

rake time:zones:all

您可能会看到一个名为 London 的时区,它只是UTC +00:00,但是应该可以正确处理英国的夏令时.

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