Heroku timezone difference rails -
i have problem heroku timezone
heroku:
time.zone.now => tue, 16 dec 2014 14:41:57 msk +04:00
but on localhost is
time.zone.now => tue, 16 dec 2014 13:41:01 msk +03:00
where problem?
im did heroku config:add tz="my tz"
in application.rb
class application < rails::application config.generators |g| config.time_zone = 'moscow' g.orm :mongo_mapper end
there no such tz name moscow should europe/moscow
heroku config:add tz = "europe/moscow"
please refer link available time zone
http://en.wikipedia.org/wiki/list_of_tz_database_time_zones
also more details
https://coderwall.com/p/j9_e8a/set-timezone-for-your-heroku-app
Comments
Post a Comment