Restore photo's creation date to the original one #2056

Closed
opened 2026-02-05 04:53:43 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @MrModest on GitHub (Jan 24, 2024).

The bug

Creating an issue as a continuation of Discord discussion: https://discord.com/channels/979116623879368755/994044917355663450/1199665281937711184

Immich doesn't restore the original created date in the first 3 properties of photos.

$» exiftool 20160528-155953_Kamil_2.jpg | grep '2016\|2023\|2024'
File Name                       : 20160528-155953_Kamil_2.jpg
File Modification Date/Time     : 2023:12:19 21:28:43+01:00
File Access Date/Time           : 2024:01:24 11:43:41+01:00
File Inode Change Date/Time     : 2023:12:19 21:28:43+01:00
Modify Date                     : 2016:05:28 15:59:53
Date/Time Original              : 2016:05:28 15:59:53
Create Date                     : 2016:05:28 15:59:53
GPS Date Stamp                  : 2016:05:28
Create Date                     : 2016:05:28 15:59:53.024979
Date/Time Original              : 2016:05:28 15:59:53.024979
Modify Date                     : 2016:05:28 15:59:53.024979
GPS Date/Time                   : 2016:05:28 12:59:51Z

Could be done by

$» exiftool "-filemodifydate=2016:05:28 15:59:53" "-filecreatedate=2016:05:28 15:59:53" 20160528-155953_Kamil_2.jpg

The result:

$» exiftool 20160528-155953_Kamil_2.jpg | grep '2016\|2023\|2024'                         me@Mac13
File Name                       : 20160528-155953_Kamil_2.jpg
File Modification Date/Time     : 2016:05:28 15:59:53+02:00
File Access Date/Time           : 2016:05:28 15:59:53+02:00
File Inode Change Date/Time     : 2016:05:28 15:59:53+02:00
Modify Date                     : 2016:05:28 15:59:53
Date/Time Original              : 2016:05:28 15:59:53
Create Date                     : 2016:05:28 15:59:53
GPS Date Stamp                  : 2016:05:28
Create Date                     : 2016:05:28 15:59:53.024979
Date/Time Original              : 2016:05:28 15:59:53.024979
Modify Date                     : 2016:05:28 15:59:53.024979
GPS Date/Time                   : 2016:05:28 12:59:51Z

The OS that Immich Server is running on

all

Version of Immich Server

v1.93.3

Version of Immich Mobile App

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

N/A

Your .env content

N/A

Reproduction steps

Upload file with an old created date - in the immich storage folder the photo will have the uploaded date instead of created on in the particular properties described above.

Additional information

No response

Originally created by @MrModest on GitHub (Jan 24, 2024). ### The bug Creating an issue as a continuation of Discord discussion: https://discord.com/channels/979116623879368755/994044917355663450/1199665281937711184 Immich doesn't restore the original created date in the first 3 properties of photos. ```sh $» exiftool 20160528-155953_Kamil_2.jpg | grep '2016\|2023\|2024' File Name : 20160528-155953_Kamil_2.jpg File Modification Date/Time : 2023:12:19 21:28:43+01:00 File Access Date/Time : 2024:01:24 11:43:41+01:00 File Inode Change Date/Time : 2023:12:19 21:28:43+01:00 Modify Date : 2016:05:28 15:59:53 Date/Time Original : 2016:05:28 15:59:53 Create Date : 2016:05:28 15:59:53 GPS Date Stamp : 2016:05:28 Create Date : 2016:05:28 15:59:53.024979 Date/Time Original : 2016:05:28 15:59:53.024979 Modify Date : 2016:05:28 15:59:53.024979 GPS Date/Time : 2016:05:28 12:59:51Z ``` Could be done by ```sh $» exiftool "-filemodifydate=2016:05:28 15:59:53" "-filecreatedate=2016:05:28 15:59:53" 20160528-155953_Kamil_2.jpg ``` The result: ```sh $» exiftool 20160528-155953_Kamil_2.jpg | grep '2016\|2023\|2024' me@Mac13 File Name : 20160528-155953_Kamil_2.jpg File Modification Date/Time : 2016:05:28 15:59:53+02:00 File Access Date/Time : 2016:05:28 15:59:53+02:00 File Inode Change Date/Time : 2016:05:28 15:59:53+02:00 Modify Date : 2016:05:28 15:59:53 Date/Time Original : 2016:05:28 15:59:53 Create Date : 2016:05:28 15:59:53 GPS Date Stamp : 2016:05:28 Create Date : 2016:05:28 15:59:53.024979 Date/Time Original : 2016:05:28 15:59:53.024979 Modify Date : 2016:05:28 15:59:53.024979 GPS Date/Time : 2016:05:28 12:59:51Z ``` ### The OS that Immich Server is running on all ### Version of Immich Server v1.93.3 ### Version of Immich Mobile App - ### Platform with the issue - [X] Server - [ ] Web - [ ] Mobile ### Your docker-compose.yml content ```YAML N/A ``` ### Your .env content ```Shell N/A ``` ### Reproduction steps ```bash Upload file with an old created date - in the immich storage folder the photo will have the uploaded date instead of created on in the particular properties described above. ``` ### Additional information _No response_
OVERLORD added the 🗄️server label 2026-02-05 04:53:43 +03:00
Author
Owner

@mertalev commented on GitHub (Mar 11, 2024):

I believe this is fixed via #7010

@mertalev commented on GitHub (Mar 11, 2024): I believe this is fixed via #7010
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#2056