immich-app / immich

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

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

Open VenomousViper27 opened 10 months ago

VenomousViper27 commented 10 months ago

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

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

VenomousViper27 commented 10 months ago

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