How to change timezone server to local at Heroku

Heroku uses UTC by default. We need to change Heroku Config Variables. You can use one of these ways.

  1. Using command line
$ heroku config:add TZ=”Asia/Jakarta”

2. Go to your Heroku website

Go to Settings > Click Reveal Config Vars > Add new config var: TZ = Asia/Jakarta