immich-app / immich

High performance self-hosted photo and video management solution.
https://immich.app
GNU Affero General Public License v3.0
49.02k stars 2.57k forks source link

Wrong order of photos on "X years ago" feature #13566

Open kikendo opened 1 day ago

kikendo commented 1 day ago

The bug

Photos taken with different devices, set to different timezones, on the same day, have the wrong order on the "X years ago" feature, on both web and mobile. They show up in chronological order in the timeline view, as they should

The OS that Immich Server is running on

Debian 5.10

Version of Immich Server

v1.118.2

Version of Immich Mobile App

1.118.0 build 180

Platform with the issue

Your docker-compose.yml content

.

Your .env content

.

Reproduction steps

Have photos on the same date that have different timezones. I'm not sure it's the device creating them but the timezones.

Relevant log output

No response

Additional information

No response

kikendo commented 1 day ago

Adding to the above I can confirm that the problem is that the order in which images are shown on that feature only follows the time and ignores the timezone, so you would see something like this: 1) Photo taken at 1:30 GMT+3 2) Photo taken at 1:31 GMT+3 3) Photo taken at 1:34 GMT-5 4) Photo taken at 1:38 GMT+3

etc.

The timeline does the correct calculation and displays images in the right order regardless of their timezone