Setting the timezone

I have tried a number of methods to change the timezone without success. I am new to all of this and obviously clueless… mint linux environment
I would like the logs to reflect my time. Presently it is 5 hours ahead of my time.

{“log”:“[2025-02-12 10:56:59.548][vaultwarden][INFO] Vaultwarden process exited!\n”,“stream”:“stdout”,“time”:“2025-02-12T15:56:59.548607447Z”}

{“log”:“{"level":"info","ts":1739375819.54595,"msg":"shutdown complete","signal":"SIGTERM","exit_code":0}\n”,“stream”:“stderr”,“time”:“2025-02-12T15:56:59.546282631Z”}

services:
vaultwarden:
image: vaultwarden/server:latest
container_name: vaultwarden
restart: always
environment:
WEBSOCKET_ENABLED: “true” # Enable WebSocket notifications.
volumes:
- /vaultwarden/vw-data:/data
- “/etc/localtime:/etc/localtime:ro”

environment:
DOMAIN:
EMAIL: registration.
DUCKDNS_TOKEN: # Your Duck DNS token.
LOG_FILE: “/var/log/access.log”
TZ: “TZ=America/New_York”

Lastly is there a differences using “docker compose” vs “docker container”

thank-you

Remove the TZ= from the value of TZ

1 Like