Last Updated: February 25, 2016
· johnnyrodgers

Set timezone for your Heroku app

Heroku uses UTC by default. To change this, set your preferred timezone using the TZ Database Timezone format (

For example, for Pacific Time:

$ heroku config:add TZ="America/Los_Angeles"

Credit to

2 Responses
Add your response

Thanks for this. I can set to my local timezone but does that mean people in a different timezones will be off? Do you know how we set it so the Date will read whatever local timezone of the user?

over 1 year ago ·

checkthemethod: What this setting controls is which timezone database records use when they are created and updated. If you set the TZ to Pacific Standard, as in the example above, then any dates and times you output in your app will be displayed in PST. To offset based on the timezone of the user, look into A useful article:

over 1 year ago ·