Set local server timezone before server is started

I.e. set TZ='UTC' node index.js

Another option is to set it in the .env but maybe an option in the UI is nice for beginners.

Specially useful for the dev environment where you might be in a different tz than stage/production.

+1 Just hit this myself.

It was already possible to set it using .env for local development and for docker it is now also possible to set the timezone.

Hi @JonL … how would one set this in the .env or is it set in the UI as i cannot find it in the UI maybe looking at the wrong place.?

Create .env file in the root of your project and add the variables there.

This will work only for your development environment. For production you will need to set it up as per your hosting instructions.

2 Likes

will… just .env work in the root folder… or must it be process.env ?

You create .env(literally that name) in your root. Then all those variables are available to you on $_ENV.variable_name

1 Like