I
Immich5mo ago
Julian

Immich displays / stores the wrong date and time metadata

I have an issue with immich displaying wrong time/date info for certain photos. When I reindex the matadata, this persists. What can I do to fix this. Even reuploading (which has the correct date) has the same issue. Here you can see it uploading with the correct date. But immich displays it like this. It also seems to change the actual metadata. But this doesn't even line up with what's shown in the ui.
55 Replies
Immich
Immich5mo ago
:wave: Hey @Julian, Thanks for reaching out to us. Please carefully read this message and follow the recommended actions. This will help us be more effective in our support effort and leave more time for building Immich :immich:. References - Container Logs: docker compose logs docs - Container Status: docker ps -a docs - Reverse Proxy: https://immich.app/docs/administration/reverse-proxy - Code Formatting https://support.discord.com/hc/en-us/articles/210298617-Markdown-Text-101-Chat-Formatting-Bold-Italic-Underline#h_01GY0DAKGXDEHE263BCAYEGFJA Checklist I have... 1. :ballot_box_with_check: verified I'm on the latest release(note that mobile app releases may take some time). 2. :ballot_box_with_check: read applicable release notes. 3. :ballot_box_with_check: reviewed the FAQs for known issues. 4. :ballot_box_with_check: reviewed Github for known issues. 5. :ballot_box_with_check: tried accessing Immich via local ip (without a custom reverse proxy). 6. :blue_square: uploaded the relevant information (see below). 7. :ballot_box_with_check: tried an incognito window, disabled extensions, cleared mobile app cache, logged out and back in, different browsers, etc. as applicable (an item can be marked as "complete" by reacting with the appropriate number) Information In order to be able to effectively help you, we need you to provide clear information to show what the problem is. The exact details needed vary per case, but here is a list of things to consider: - Your docker-compose.yml and .env files. - Logs from all the containers and their status (see above). - All the troubleshooting steps you've tried so far. - Any recent changes you've made to Immich or your system. - Details about your system (both software/OS and hardware). - Details about your storage (filesystems, type of disks, output of commands like fdisk -l and df -h). - The version of the Immich server, mobile app, and other relevant pieces. - Any other information that you think might be relevant. Please paste files and logs with proper code formatting, and especially avoid blurry screenshots. Without the right information we can't work out what the problem is. Help us help you ;) If this ticket can be closed you can use the /close command, and re-open it later if needed.
bo0tzz
bo0tzz5mo ago
Does the file have actual EXIF data (as shown by exiftool)?
Julian
JulianOP5mo ago
yes, it does
❯ exiftool 2eb9eaa8-4d49-47a6-8082-9781791a9ceb.jpg
ExifTool Version Number : 13.25
File Name : 2eb9eaa8-4d49-47a6-8082-9781791a9ceb.jpg
Directory : .
File Size : 673 kB
File Modification Date/Time : 2024:12:10 00:07:34+01:00
File Access Date/Time : 2024:12:10 00:07:34+01:00
File Inode Change Date/Time : 2024:12:10 00:07:34+01:00
File Permissions : -rwxrwxrwx
File Type : JPEG
File Type Extension : jpg
MIME Type : image/jpeg
JFIF Version : 1.01
Resolution Unit : None
X Resolution : 1
Y Resolution : 1
Image Width : 1200
Image Height : 1600
Encoding Process : Baseline DCT, Huffman coding
Bits Per Sample : 8
Color Components : 3
Y Cb Cr Sub Sampling : YCbCr4:4:4 (1 1)
Image Size : 1200x1600
Megapixels : 1.9
❯ exiftool 2eb9eaa8-4d49-47a6-8082-9781791a9ceb.jpg
ExifTool Version Number : 13.25
File Name : 2eb9eaa8-4d49-47a6-8082-9781791a9ceb.jpg
Directory : .
File Size : 673 kB
File Modification Date/Time : 2024:12:10 00:07:34+01:00
File Access Date/Time : 2024:12:10 00:07:34+01:00
File Inode Change Date/Time : 2024:12:10 00:07:34+01:00
File Permissions : -rwxrwxrwx
File Type : JPEG
File Type Extension : jpg
MIME Type : image/jpeg
JFIF Version : 1.01
Resolution Unit : None
X Resolution : 1
Y Resolution : 1
Image Width : 1200
Image Height : 1600
Encoding Process : Baseline DCT, Huffman coding
Bits Per Sample : 8
Color Components : 3
Y Cb Cr Sub Sampling : YCbCr4:4:4 (1 1)
Image Size : 1200x1600
Megapixels : 1.9
And I checked, this is the case for all affected images
Julian
JulianOP5mo ago
I ment to attach some screenshots but DC didn't do it. Here: It's the Immich UI, the actual EXIF data on the file system and the Immich app uploading it with correct metadata
No description
No description
No description
Julian
JulianOP5mo ago
I also found this thread on github, not sure if it is related: https://github.com/immich-app/immich/discussions/7654
bo0tzz
bo0tzz5mo ago
No, it doesn't That's just filesystem metadata which isn't actually part of the file, and so isn't preserved when uploading it to Immich
Julian
JulianOP5mo ago
ok, but what is the issue then?
Mraedis
Mraedis5mo ago
Are you not simply confusing timezones here?
Julian
JulianOP5mo ago
I mean, why does Immich get a completely wrong date? If it doesn't correctly upload, that's one thing but then storing it with a seemingly random date make no sense to me+
Mraedis
Mraedis5mo ago
What 'completely" wrong? ah didn't see the upload 29 oktober date
Julian
JulianOP5mo ago
"completely wrong" is a photo from the 29th october being stores as the 10th december and displayed as the 9th december
Mraedis
Mraedis5mo ago
Is this iOS?
Julian
JulianOP5mo ago
i initially also though timezone but that would not explain the date confusion yes, it is. and when I think about it, it also only affects images from iOS, no other ones (i.e. from a camera or smth)
Mraedis
Mraedis5mo ago
See also https://discord.com/channels/979116623879368755/1376985998302646435/1377840610555461702 TL;DR it's a known issue with iOS and uploads cc @bo0tzz 😛
Julian
JulianOP5mo ago
ok, thanks I'll look into that
Mraedis
Mraedis5mo ago
Not much you can do about it right now I'm afraid
Julian
JulianOP5mo ago
so you're saying this can happen anytime again?
Mraedis
Mraedis5mo ago
I'm saying this happens to iOS uploads that have poor metadata
Julian
JulianOP5mo ago
wait a second, most of the images that are affected are saved from smth like whatsapp or signal. So they do have poor metadata I'm starting to see a pattern now
Mraedis
Mraedis5mo ago
I was going to type that about whatsapp so yes, spot on 😛
Julian
JulianOP5mo ago
I hate whatsapp so much 😉
Mraedis
Mraedis5mo ago
As I understand the issue it's basically - received date is saved as modification date - upload for some reason jumbles the modification date before it parses it - new date is saved as upload date
Julian
JulianOP5mo ago
That makes sense. And it would explain why it stores it in the file system with the wrong date
Mraedis
Mraedis5mo ago
the 10 december vs 9 december is basically just a timezone thing it's the same date but displayed to your (local) timezone
Julian
JulianOP5mo ago
yes, I checked. that is actually the case. For some reason, the server is out of sync here one more question: If I manually adjust the date in immich. Is it possible that they change again in the future?
Mraedis
Mraedis5mo ago
If you change it and then run "extract metadata" it could revert, but I'm not sure
Julian
JulianOP5mo ago
ok, so "don't touch the metadata button" and it should be fine. But I'll do some more digging here thank you so much 🙏 So... Turns out after fixing the wrong dates on the affected images on Immich, my iPhone decided that these are "new"assets and uploaded them again with the wrong date. Now I'm not only left with ~250 images that have wrong dates but also their duplicates with correct (manually added) dates.
Mraedis
Mraedis5mo ago
How did you fix them? 👀
Julian
JulianOP5mo ago
Manually go over most of them and adjust the date + timezone to what is stored in iCloud Photos. (Have them there as a backup) Then, when I checked half way through, if it worked... I found out it did not
Mraedis
Mraedis5mo ago
right so through the web/app GUI?
Julian
JulianOP5mo ago
yes, i tagged them as "wrong date" and then went through them in the tag view on web But i have a new theory on what causes the issue: iCloud and Apple's "free up space" feature Since this only happens to older assets (specifically, before I started using Immich), I think this is related to iCould deleting and re-downloading items to free up space. Usually, this wouldn't be an issue, but when the image has to EXIF metadata, it messes up the upload since the file modification date changes.
Mraedis
Mraedis5mo ago
Makes sense 🤔
Julian
JulianOP5mo ago
I've tested this by uploading an asset to icloud, deleting it from device and then letting immich upload it. tldr: the date is set to today / right now. uploads of the same file through the web ui are fine I'm using Immich now since February. I would have noticed this earlier. Could this be in some way related with a recent update? I found this thread that sounds similar to my issue: https://discord.com/channels/979116623879368755/1378816649137881302
Mraedis
Mraedis5mo ago
I don't know that, but you might want to make an issue with your findings
Julian
JulianOP5mo ago
Do you anyone from the core team that i could ask about this? Cause I don't really know the scope of the issue yet. If it's iCloud, that's one thing but if it's an actual server issue...
Mraedis
Mraedis5mo ago
@shenlong-tanwen another timezone funkiness investigation, Julian has some extra details he thinks might be interesting to explore
Julian
JulianOP5mo ago
Thank you so much
shenlong-tanwen
shenlong-tanwen5mo ago
Interesting. So rather than letting Immich download and upload it, can you use the Share menu and select the Immich app, upload the asset and check if that preserves the proper date time information?
Julian
JulianOP5mo ago
Hey, sorry for not responding earlier. I’ll try that as soon as possible. Thank you Ok, sharing the asset directly with Immich did it. However, now it is shown as “cloud only”, so my iPhone still thinks that there are two different assets. Meaning if I delete the wrong one in Immich, it’s just gonna upload it again. Do you think the issue is a bug in the auto-upload? Cause that’s what it looks like
shenlong-tanwen
shenlong-tanwen5mo ago
Can you zip and share both the cloud only asset and the local asset?
Julian
JulianOP5mo ago
So the one that I manually uploaded and the one that Immich auto uploaded?
shenlong-tanwen
shenlong-tanwen5mo ago
No, the one from the mobile app that has a cloud crossed icon and a cloud only icon This is to check why both the files are not linked together but got duplicated
Julian
JulianOP5mo ago
Ok, my bad. But there is actually no "cloud-crossed" icon. I'll try to explain: The auto-upload assigned Dec, 10 as the date for the asset. (It shows up in December with the "cloud-checkmark"). My manual upload (share with immich), has the correct date of Oct, 29 but shows up as "cloud-only" in the mobile app. This is the exiftool output for the auto-upload:
~/Downloads
❯ exiftool c4d7c6372c1ab00e1e8a10a1c7c415da_exif.jpg
ExifTool Version Number : 13.25
File Name : c4d7c6372c1ab00e1e8a10a1c7c415da_exif.jpg
Directory : .
File Size : 1607 kB
File Modification Date/Time : 2025:06:04 10:19:04+02:00
File Access Date/Time : 2025:06:04 10:19:16+02:00
File Inode Change Date/Time : 2025:06:04 10:19:12+02:00
File Permissions : -rw-r--r--
File Type : JPEG
File Type Extension : jpg
MIME Type : image/jpeg
JFIF Version : 1.01
Exif Byte Order : Big-endian (Motorola, MM)
Orientation : Horizontal (normal)
X Resolution : 72
Y Resolution : 72
Resolution Unit : inches
Color Space : sRGB
Exif Image Width : 1200
Exif Image Height : 1600
Current IPTC Digest : d41d8cd98f00b204e9800998ecf8427e
IPTC Digest : d41d8cd98f00b204e9800998ecf8427e
Image Width : 1200
Image Height : 1600
Encoding Process : Baseline DCT, Huffman coding
Bits Per Sample : 8
Color Components : 3
Y Cb Cr Sub Sampling : YCbCr4:4:4 (1 1)
Image Size : 1200x1600
Megapixels : 1.9
~/Downloads
❯ exiftool c4d7c6372c1ab00e1e8a10a1c7c415da_exif.jpg
ExifTool Version Number : 13.25
File Name : c4d7c6372c1ab00e1e8a10a1c7c415da_exif.jpg
Directory : .
File Size : 1607 kB
File Modification Date/Time : 2025:06:04 10:19:04+02:00
File Access Date/Time : 2025:06:04 10:19:16+02:00
File Inode Change Date/Time : 2025:06:04 10:19:12+02:00
File Permissions : -rw-r--r--
File Type : JPEG
File Type Extension : jpg
MIME Type : image/jpeg
JFIF Version : 1.01
Exif Byte Order : Big-endian (Motorola, MM)
Orientation : Horizontal (normal)
X Resolution : 72
Y Resolution : 72
Resolution Unit : inches
Color Space : sRGB
Exif Image Width : 1200
Exif Image Height : 1600
Current IPTC Digest : d41d8cd98f00b204e9800998ecf8427e
IPTC Digest : d41d8cd98f00b204e9800998ecf8427e
Image Width : 1200
Image Height : 1600
Encoding Process : Baseline DCT, Huffman coding
Bits Per Sample : 8
Color Components : 3
Y Cb Cr Sub Sampling : YCbCr4:4:4 (1 1)
Image Size : 1200x1600
Megapixels : 1.9
Julian
JulianOP5mo ago
And this is the exiftool output for the manual upload (share menu). The message was too long for DC, so I made it a gist. https://gist.github.com/j4n-e4t/5bfc4a2128174eea96cdf580ad5a80f3
Gist
EXIF data
EXIF data. GitHub Gist: instantly share code, notes, and snippets.
Julian
JulianOP5mo ago
I think I'm going insane here... I've tried the same thing with a different asset and now my manual upload is flagged as a duplicate of another asset (the auto-upload with the wrong date).
shenlong-tanwen
shenlong-tanwen5mo ago
This is the expected since the files are identical. I am curious as to why the first upload was not flagged as a duplicate 😅
Julian
JulianOP5mo ago
Why do you think, the manual upload of the first asset had the correct date and also metadata attached?
shenlong-tanwen
shenlong-tanwen5mo ago
The app does not strip any metadata during upload. Can you share the original assets that you ran the exiftool on? c4d7c6372c1ab00e1e8a10a1c7c415da_exif.jpg and 2eb9eaa8-4d49-47a6-8082-9781791a9ceb\ 2.JPG
Julian
JulianOP5mo ago
of course: https://drive.proton.me/urls/DFGK946AFM#8OLcU6BVYevS These are the two that I ran exiftool on. I've now also added the original from my iCloud Photos. When running exiftool there, you can see that it it identical to the one that i manually uploaded to Immich, meaning that exif data is present. I think I found the issue. It's the way the mobile app uploads assets. I've synced a few affected assets manually via my computer and everything works fine (i.e. the metadata is parsed correctly). Going forward, I'll probably not use the auto upload anymore.
shenlong-tanwen
shenlong-tanwen5mo ago
Okay so this is weird, the auto upload one is bigger than the original and has limited exif fields :monkaHmm:
Julian
JulianOP5mo ago
I’ve done a bit more digging last night. I have downgraded my server by restoring an old backup (version 1.32.3). Not only did it fix the issue with the auto upload. But I found what caused it in the first place. I thought it was weird that I haven’t noticed all these wrong assets for such a long time. The reason for that is that they were only sorted incorrectly after an update. My guess is that it re-ran the “extract metadata” job. I’ve tried this yesterday and it caused the exact same issue. So maybe it isn’t the mobile app after all but instead the indexing on the server side.
washhy
washhy5mo ago
Hi guys - Experiencing a similar issue when uploading from the iOS app. Will try to see if i can get some more info regarding metadata differences. Super new to immich so no previous versions to roll back to.
Julian
JulianOP4mo ago
@washhy I'd say welcome to the group... but it's really no fun having a bunch of images all over the place.. 🙃 Anyways... How similar do you think your issue is? Is it also assets with poor metadata (i.e. from whatsapp or signal) that show up with a wrong date? And how long have you been using Immich (what version of the server)?
washhy
washhy4mo ago
Yeah hopefully it’s resolved soon as hard to transition my family off Photos until it’s fixed🤞 Will try to add as many details as I can. Currently running: 1.132.3 (can see there is an update available) Will match the assets tonight to see if there are similar patterns to what you’re experiencing.
Julian
JulianOP4mo ago
Ok, so have the issue on 1.132.3? That means that it is not a recent update that caused it but rather an older bug. Great, take your time. I'm also quite busy today. Maybe we can chat tomorrow then.

Did you find this page helpful?