immich icon indicating copy to clipboard operation
immich copied to clipboard

Web timeline shows photos as one day in the future but matadata has todays date.

Open natedawg opened this issue 1 year ago • 7 comments

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

natedawg avatar Jan 27 '24 06:01 natedawg

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?

mmomjian avatar Jan 30 '24 16:01 mmomjian

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.

natedawg avatar Jan 30 '24 19:01 natedawg

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.

mmomjian avatar Jan 30 '24 19:01 mmomjian

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.

natedawg avatar Feb 08 '24 18:02 natedawg

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

figadore avatar Mar 19 '24 06:03 figadore

same issue here. example photo with metadata view: image but in the timeline, the same photo appears on tuesday: image

this maybe has to do with UTC? it seems right around the UTC day boundary that photos shift into the next day.

igor47 avatar May 02 '24 03:05 igor47

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): phone

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: Screenshot 2024-05-03 at 10 23 58 AM

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).

Screenshot 2024-05-03 at 10 28 24 AM Screenshot 2024-05-03 at 10 28 35 AM

Everything is latest for me, v1.103.1 for server, and 1.103.1 build.137 for android.

aedelbro avatar May 03 '24 15:05 aedelbro