Cloud Run: setting the time zone

I cannot find any docs on setting the time zone for an app running on GCP Cloud Run. I tried using 'gcloud run deploy ${APP_NAME} --set-env-vars=TZ=America/Los_Angeles', but setting the TZ env variable did nothing, and the time zone for my app is still set to UTC. 

How does one set the time zone (preferably via 'gcloud run deploy')?

Solved Solved
0 2 567
1 ACCEPTED SOLUTION

Thanks @robertcarlos for the help. It turned out that the cause of my issue was due to not passing the `TZ` env variable to the server software used for my app.

View solution in original post

2 REPLIES 2

Hi @nick-youngblut,

Welcome to Google Cloud Community!

May I know the use-case scenario why do you want to change the time zone?

If you need it for reporting purposes, you can change the time zone by clicking the time range on the upper right of the metrics page of your Cloud Run instance then click on time zone and select your preferred time zone.

BsdJKC5UVoeQVU5.png

 

Hope this helps.

Thanks @robertcarlos for the help. It turned out that the cause of my issue was due to not passing the `TZ` env variable to the server software used for my app.