R
R
Ruslan Galiev2014-11-14 09:29:11
Ruby on Rails
Ruslan Galiev, 2014-11-14 09:29:11

Rails How to change the time zone in Moscow to +03:00 ?

Hello
In connection with the last change of the Moscow time zone from +4 to +3, please tell me how, other than setting the time zone to Baghdad, for example, you can change the time zone. I would like it to remain in config/application.rb
config.time_zone = 'Moscow'
But then the time will not be correct:

1.9.3-p448 :001 > Time.zone.to_s
 => "(GMT+04:00) Moscow"

Is there an option other than setting the timezone to Baghdad?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Gregory, 2014-11-14
@HerMajor

Update tzdata and everything should work. Changing your belt to Baghdad will not help you in any way, it will only get you more problems .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question