mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-09 17:23:22 +03:00
🐛 Bug Report: Timezone not respected in logs #230
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
@stonith404 commented on GitHub:
Thanks for reporting this. This should be fixed in
5e2e947fe0and will be available in the next release.