immich
immich copied to clipboard
Web timeline shows photos as one day in the future but matadata has todays date.
The bug
Near the end of the day I saved a photo from the internet and uploaded it to immich. However the web timeline is listing the photo as one day in the future. There are photos saved an d uploaded from earlier today that are under the correct time heading Today
The android app shows the correct date heading in the timeline.
Example:
Incorrect timeline date: Sat, Jan 27
Photo details date: Jan 26, 2024 Fri, 9:08 PM
Current local time: Jan 26, 2024 10:30PM
The OS that Immich Server is running on
Docker
Version of Immich Server
v1.93.3
Version of Immich Mobile App
v1.93.3
Platform with the issue
- [ ] Server
- [X] Web
- [ ] Mobile
Your docker-compose.yml content
immich_server and immich_microservices is mounting the volume
`- /etc/localtime:/etc/localtime:ro`
Your .env content
NA
Reproduction steps
1. During the last few hours of the day upload a photo that was just taken/saved.
Additional information
No response
I don't believe Immich uses /etc/localtime - per https://immich.app/docs/install/environment-variables you need to set the env var TZ for the immich-microservices container. Is this set?
What time exactly is shown on the picture in question through the web interface?
I do not have TZ set and the docker-compose.yml provided in the repo has the - /etc/localtime:/etc/localtime:ro as a mount point. However I don't think it matters since the details page shows the correct date and the android app timeline is correct. It's just the web timeline logic that is bugged.
The photo details on the web shows the correct time Jan 26, 2024 Fri, 9:08 PM but the timeline displays the photo as being from the next day Sat, Jan 27.
Oh, that is strange. I think the docs may need some updating then because they reference to setting TZ for immich-microservices. Additionally, in my experience I had a number of files that didn't have the timezone correctly set until I specified TZ in addition to the localtime mountpoint.
UPDATE: I just noticed the opposite is also happening. Images are being displayed under the Today heading when they where taken/modified yesterday. Again the mobile app shows them correctly.
I'm having the same problem, but it only appears to affect videos for me. It looks fine on the mobile app, but the web app groups them into the wrong day (based on the UTC time of the video). The timezone listed in the info view for the photos correctly displays -7, but for the videos is listed as UTC or GMT+0 on both web and mobile
same issue here. example photo with metadata view:
but in the timeline, the same photo appears on tuesday:
this maybe has to do with UTC? it seems right around the UTC day boundary that photos shift into the next day.
This issue thread seems to be the closest to what I'm seeing as well.
The android app is working as expected (today is Friday, and all photos show under thursday when they were taken):
However in web, some photos show under thursday, and some show under today (friday). And probably a separate issue, but it goes from Tuesday -> Today (friday) -> thursday:
All the photos were taken on Thursday, and the metadata for all of them is proper. The split appears to be around the UTC day split (as others pointed out).
Everything is latest for me, v1.103.1 for server, and 1.103.1 build.137 for android.