Skip to content

Whenever I edit the time on a photo, one hour is subtracted #29364

Description

@morganwahl

I have searched the existing issues, both open and closed, to make sure this is not a duplicate report.

  • Yes

The bug

This is all using the server webapp, however I have seen the same bug when editing datetimes using the Android app.

I have a photo from 1990. It was taken in the timezone America/Indiana/Vincennes. Whenever I edit the date and time to March 15th, 1990, 3:58 PM, what gets saved is the correct date, but the time is 2:58 PM. Each time the "Edit date and time" modal is opened, if I click "Confirm", the timestamp is set to one hour earlier. If I click "Cancel" the timestamp is unchanged.

Interestingly, if I change the date to February 15th, 1990, I don't see this behavior.

It's possible this problem is related to the complicated history of this timezone. https://en.wikipedia.org/wiki/Time_in_Indiana

The OS that Immich Server is running on

Unsure, running on PikaPods

Version of Immich Server

v2.7.5

Version of Immich Mobile App

2.7.5.build.3046

Platform with the issue

  • Server
  • Web
  • Mobile

Device make and model

No response

Your docker-compose.yml content

Unsure, running on PikaPods

Your .env content

Unsure, running on PikaPods

Reproduction steps

  1. On a photo page, set the location to 38.41835 -86.99925. This puts it in the America/Indiana/Vincennes timezone.
  2. Click on the timestamp to open the "Edit date and time" modal.
  3. The timezone will have been automatically set to America/Indiana/Vincennes timezone.
  4. Set the datetime to March 15th, 1990, 3:58 PM.
  5. Click "Confirm".

Expected behavior:

The photo timestamp is March 15th, 1990, 3:58 PM.

Actual behavior:

The photo timestamp is March 15t, 1990, 2:58 PM.

Simply opening the "Edit date and time" modal and closing it with "Confirm" will set the time 1 hour earlier each time.

Relevant log output

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    To triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions