sissbruecker / linkding

Self-hosted bookmark manager that is designed be to be minimal, fast, and easy to set up using Docker.
MIT License
5.32k stars 261 forks source link

Date and time incorrect #764

Open ados8 opened 2 weeks ago

ados8 commented 2 weeks ago

I've added the TZ variable to the Unraid docker template but it continues to show the time and therefore date far behind. At first I thought it was the snapshot system as it might have it's own timezone but even the bookmark adding is out. Is there a way to set the timezone?

watsonbox commented 2 weeks ago

I tried the same thing with no luck, but this solution worked by updating docker-compose.yaml:

volumes:
  - "${LD_HOST_DATA_DIR:-./data}:/etc/linkding/data"
  - "./custom.py:/etc/linkding/siteroot/settings/custom.py:ro"

I note that there is another proposal to solve this in the app itself: https://github.com/sissbruecker/linkding/issues/722.

After playing with it for a bit, I decided to submit a small fix to get the TZ var working https://github.com/sissbruecker/linkding/pull/765.