🐛 Bug Report: Timezone not respected in logs #193

Closed
opened 2025-07-08 08:42:00 -04:00 by AtHeartEngineer · 0 comments

Originally created by @gtensolr on 5/6/2025

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 5/6/2025* ### 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_
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/pocket-id#193