🐛 Bug Report: Timezone not respected in logs #230

Closed
opened 2025-10-07 00:06:39 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @gtensolr on GitHub.

Reproduction steps

When I go to the logs of PocketID using Unraid, the time on the logs are off from my by 4 hours. Unraid by itself adds automatically the variable TZ, which is being correctly set as America/New_York. I tried to add /etc/localtime and /etc/timezone as well to the container without success.

docker run
  -d
  --name='pocketid'
  --net='reverse_proxy'
  --pids-limit 2048
  -e TZ="America/New_York"
  -e HOST_OS="Unraid"
  -e HOST_HOSTNAME="unraid"
  -e HOST_CONTAINERNAME="pocketid"
  -e 'PUBLIC_APP_URL'='https://REDACTED'
  -e 'TRUST_PROXY'='true'
  -e 'DB_PATH'='data/pocket-id.db'
  -e 'UPLOAD_PATH'='data/uploads'
  -e 'PORT'='3000'
  -e 'BACKEND_PORT'='8080'
  -e 'PUID'='099'
  -e 'PGID'='100'
  -e 'CA_TS_FALLBACK_DIR'='/app/backend/data'
  -l net.unraid.docker.managed=dockerman
  -l net.unraid.docker.webui='http://[IP]:[PORT:80]/'
  -l net.unraid.docker.icon='https://raw.githubusercontent.com/nwithan8/unraid_templates/master/images/pocket-id-icon.png'
  -p '3000:80/tcp'
  -v '/mnt/nvme/appdata/pocket-id/data':'/app/backend/data':'rw' 'ghcr.io/pocket-id/pocket-id:latest' 

Expected behavior

I would hope that with the TZ variable, the logs would reflect the correct timezone.

Actual Behavior

The logs do not follow the correct timezone and appears to reflect UTC.

Version and Environment

v0.52.0

Log Output

No response

Originally created by @gtensolr on GitHub. ### Reproduction steps When I go to the logs of PocketID using Unraid, the time on the logs are off from my by 4 hours. Unraid by itself adds automatically the variable TZ, which is being correctly set as America/New_York. I tried to add /etc/localtime and /etc/timezone as well to the container without success. docker run   -d   --name='pocketid'   --net='reverse_proxy'   --pids-limit 2048   -e TZ="America/New_York"   -e HOST_OS="Unraid"   -e HOST_HOSTNAME="unraid"   -e HOST_CONTAINERNAME="pocketid"   -e 'PUBLIC_APP_URL'='https://REDACTED'   -e 'TRUST_PROXY'='true'   -e 'DB_PATH'='data/pocket-id.db'   -e 'UPLOAD_PATH'='data/uploads'   -e 'PORT'='3000'   -e 'BACKEND_PORT'='8080'   -e 'PUID'='099'   -e 'PGID'='100'   -e 'CA_TS_FALLBACK_DIR'='/app/backend/data'   -l net.unraid.docker.managed=dockerman   -l net.unraid.docker.webui='http://[IP]:[PORT:80]/'   -l net.unraid.docker.icon='https://raw.githubusercontent.com/nwithan8/unraid_templates/master/images/pocket-id-icon.png'   -p '3000:80/tcp'   -v '/mnt/nvme/appdata/pocket-id/data':'/app/backend/data':'rw' 'ghcr.io/pocket-id/pocket-id:latest'  ### Expected behavior I would hope that with the TZ variable, the logs would reflect the correct timezone. ### Actual Behavior The logs do not follow the correct timezone and appears to reflect UTC. ### Version and Environment v0.52.0 ### Log Output _No response_
OVERLORD added the bug label 2025-10-07 00:06:39 +03:00
Author
Owner

@stonith404 commented on GitHub:

Thanks for reporting this. This should be fixed in 5e2e947fe0 and will be available in the next release.

@stonith404 commented on GitHub: Thanks for reporting this. This should be fixed in 5e2e947fe09fa881a7bbc70133a243a4baf30e90 and will be available in the next release.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/pocket-id#230