Incorrect timestamp in bitwarden.log

I"m setting up fail2ban and noticed the timestamp in the bitwarden.log is incorrect. It’s not matching the host or container timestamp. Is there a way to sync the log timestamp with that of the container it runs in so the logs reflect the date and time correctly?

Is TZ an acceptable param for docker compose? I can’t find documentation even on the wiki for all the compose environment params.

  • TZ=America/Los_Angeles

Thank you!

IIRC, setting TZ will work in the Debian-based image (latest tag), but not in the Alpine image. Bind-mounting the Docker host’s /etc/localtime into the container should work in both images:

volumes:
  - /etc/localtime:/etc/localtime:ro

Thank you. That fix worked great! Fantastic! SOLVED