How to edit timezone in unraid docker?
All my photos imported with the wrong time and timezone, and I read that I have to edit my timezone in the .env so Immich knows what time it's for. How do I find the config file for Immich in an unraid docker, or how do I edit the docker edit-page to fix the timezone? Don't see the file in the appdata folder.
7 Replies
:wave: Hey @Krolitian,
Thanks for reaching out to us. Please follow the recommended actions below; this will help us be more effective in our support effort and leave more time for building Immich :immich:.
References
- Container Logs:
docker compose logs
docs
- Container Status: docker compose ps
docs
- Reverse Proxy: https://immich.app/docs/administration/reverse-proxy
Checklist
1. :ballot_box_with_check: I have verified I'm on the latest release(note that mobile app releases may take some time).
2. :blue_square: I have read applicable release notes.
3. :blue_square: I have reviewed the FAQs for known issues.
4. :blue_square: I have reviewed Github for known issues.
5. :blue_square: I have tried accessing Immich via local ip (without a custom reverse proxy).
6. :blue_square: I have uploaded the relevant logs, docker compose, and .env files using the buttons below or the /upload
command.
7. :blue_square: I have tried an incognito window, disabled extensions, cleared mobile app cache, logged out and back in, different browsers, etc. as applicable
(an item can be marked as "complete" by reacting with the appropriate number)
If this ticket can be closed you can use the /close
command, and re-open it later if needed.you need to set the
TZ
environment variable to your timezone, for example "America/New_York"
you should also mount /etc/localtime in the containers
you can google how to do these for Unraid, I am not sureI've been trying to Google it but idk how exactly to do it and don't wanna mess it up. I'm guessing I add it in the docker edit section but can't find any examples of how it's done or find any existing TZ listed
Not sure how to do the mounting stuff, but I think I edited the docker compose properly to add the timezone. How do I verify that it worked in the program? Is there's a CLI that tells me what timezone it's using? Didn't see it say anything in the logs as it started up
You can probably shell into the container and type
date
Or echo $TZDate worked, showed me the right time and timezone. Thanks!
For anyone that reads this in the future, add this in the docker settings

My timezone is set in the same way as the user but pictures I took today are showing up as yesterday, but it was today at 1:45 pm
I type echo $TZ and date and both are saying correct timezones and current timer
do i need to rerun a job besides the metadata one?