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

Mobile photo grid splits same day pictures due to timezones #13488

Open albertogasparin opened 3 days ago

albertogasparin commented 3 days ago

The bug

My current timezone is Australia (+10h). When I look at pictures taken in the same day in London for instance (+0h), Immich correctly groups them on the timeline/photo grid regardless of the time they are taken, on the web. However, on mobile (both iOS and Android) those same pictures are split on multiple days (correct day and next day) if the time of the photo is past afternoon.

When I go into the detail of the picture, the day is correct rendered in both web and mobile, so must be a photo grid grouping bug.

The OS that Immich Server is running on

OSX via Docker

Version of Immich Server

v1.117.0

Version of Immich Mobile App

v1.117.0 build 178

Platform with the issue

Your docker-compose.yml content

Not relevant, it is the default

Your .env content

The default, still with TZ not set

Reproduction steps

  1. Upload 2 photos: both with timezone London but one with time 10am and the other with time 10pm
  2. Change you phone timezone to Sydney
  3. The app will show two dates on the photo grid
  4. The browser will show one date on the photo grid

Relevant log output

No response

Additional information

No response

alextran1502 commented 3 days ago

I believe this is fixed in 1.118. Can you please update and see if it behaves correctly?

jrasm91 commented 1 day ago

This looks to be working correct on the web, but incorrect on the mobile app. Probably an issue with the display logic on the mobile. It should bucket into days based off of localDateTime

albertogasparin commented 9 hours ago

While with Android/iOS version 1.117 the timeline was wrong but the detail info view was right, now on version 1.118 both show the wrong time. Eg: pictures taken on Sun at 10am and 2pm, Central Europe timezone. On the web they are correctly grouped under the same day, Sun, even if my browser date returns Australia timezone On mobile they are shown as Sun 10am and Mon 2pm Australian timezone, given my phone timezone settings. So the situation got worse with 1.118 compared to 1.117