How can i change the logs timestamp and date format when using docker? #3809
-
Hey, i am little confused regarding the timestamp and date format displayed in PostgREST's logs. I have understood that they depend on the server's timezone, but can i know, how i can change them if i am using the official docker image? I have tried changing the database's timezone but that didnt change anything. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
The "server" is not the "database" in this case, but the PostgREST server. You'll need to run PostgREST itself with that different timezone. That means you need to set the environment variable |
Beta Was this translation helpful? Give feedback.
The "server" is not the "database" in this case, but the PostgREST server. You'll need to run PostgREST itself with that different timezone.
That means you need to set the environment variable
TZ
accordingly when running PostgREST, for example via docker.