Time zone Heroku Time zone Heroku heroku heroku

Time zone Heroku


Time.zone returns the rails time zone (which in theory can be changed as much as you want - a different one for each user for example).

To get the time in that zone, do

Time.zone.now

instead of

Time.now


You'll need to offset your Heroku timezone with:

heroku config:add TZ=America/Los_Angeles

Then run Time.now again.