[BUG] Uploading file changes the "date" field on the file #1285

Closed
opened 2026-02-05 01:10:16 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @VenomousViper27 on GitHub (Aug 28, 2023).

Originally assigned to: @jrasm91 on GitHub.

The bug

I'm uploading some files via web and when I look at the file in my upload location the date is being updated to today's date. I also saw this when utilizing the CLI tool.

Here is my storage template:
{{y}}/{{MM}}-{{MMMM}}/{{filename}}

Which works correctly as "2005\06-June". The pictures shows up in the right spot within Immich with the correct date, it's just the copy of the file in the storage location that has an updated date.

In the original location, the file has a date/time of "6/4/2005 9:34am" and when I upload the file it shows up in the library file with the current date and time.

I've had this happen with multiple files so it's not just this file that loses the original date/time. Let me know if there's any additional information needed and I'll provide what I can.

1968 mustang.zip

Here is the original file location on the left and the Immich storage location on the right.

screenshot

The OS that Immich Server is running on

Windows 10 Docker

Version of Immich Server

1.75.2

Version of Immich Mobile App

N/A

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

I can provide if needed

Your .env content

I can provide if needed

Reproduction steps

1. Select image in original file location (take note of date/time)
2. Drag image to web to start the upload
3. Open the storage location on the Immich side and note that the date of the file has the current date instead of original.
...

Additional information

No response

Originally created by @VenomousViper27 on GitHub (Aug 28, 2023). Originally assigned to: @jrasm91 on GitHub. ### The bug I'm uploading some files via web and when I look at the file in my upload location the date is being updated to today's date. I also saw this when utilizing the CLI tool. Here is my storage template: {{y}}/{{MM}}-{{MMMM}}/{{filename}} Which works correctly as "2005\06-June". The pictures shows up in the right spot within Immich with the correct date, it's just the copy of the file in the storage location that has an updated date. In the original location, the file has a date/time of "6/4/2005 9:34am" and when I upload the file it shows up in the library file with the current date and time. I've had this happen with multiple files so it's not just this file that loses the original date/time. Let me know if there's any additional information needed and I'll provide what I can. [1968 mustang.zip](https://github.com/immich-app/immich/files/12458126/1968.mustang.zip) Here is the original file location on the left and the Immich storage location on the right. ![screenshot](https://github.com/immich-app/immich/assets/89870727/401ac359-ca91-426b-90d3-cb9b5cd74ebf) ### The OS that Immich Server is running on Windows 10 Docker ### Version of Immich Server 1.75.2 ### Version of Immich Mobile App N/A ### Platform with the issue - [X] Server - [X] Web - [ ] Mobile ### Your docker-compose.yml content ```YAML I can provide if needed ``` ### Your .env content ```Shell I can provide if needed ``` ### Reproduction steps ```bash 1. Select image in original file location (take note of date/time) 2. Drag image to web to start the upload 3. Open the storage location on the Immich side and note that the date of the file has the current date instead of original. ... ``` ### Additional information _No response_
Author
Owner

@VenomousViper27 commented on GitHub (Aug 29, 2023):

I noticed this doesn't happen if the picture has a "date taken" date/time filled out so I'm ensuring that's filled out prior to uploading as a workaround so my library keeps the original date

@VenomousViper27 commented on GitHub (Aug 29, 2023): I noticed this doesn't happen if the picture has a "date taken" date/time filled out so I'm ensuring that's filled out prior to uploading as a workaround so my library keeps the original date
Author
Owner

@jrasm91 commented on GitHub (Sep 4, 2024):

image

Looks like this was fixed in #7010

@jrasm91 commented on GitHub (Sep 4, 2024): ![image](https://github.com/user-attachments/assets/749c0c03-9ddc-4fda-8967-18ea7d578da2) Looks like this was fixed in #7010
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#1285