DEV Community

Discussion on: Change the time zone on a Heroku app

Collapse
 
kk007 profile image
Keval navadiya

If I just add TZ config and I am doing something which requires system time will it use timezone set by using the TZ ?

Collapse
 
paulasantamaria profile image
Paula Santamaría

Yes, that's how it usually works. I'm not sure if there are any specific cases where that's not the case.

For example, if you deploy a node.js app that does something like var now = new Date(), it will use the timezone you specified in your TZ config.