While using Immich, I encountered an issue reported by other users: media uploaded from the Immich mobile app doesn't appear at the correct date in the timeline when it originates from WhatsApp. This is because WhatsApp removes all EXIF metadata, including the original creation date.
On iOS, I found that Apple stores the date a photo or video was saved to the device, which usually reflects the actual capture date. This value can even be edited manually — and, most importantly, Apple exposes it through an API.
With that discovery, I attempted to implement a solution and submitted a pull request (#18243). My approach involved detecting media files likely originating from WhatsApp using several heuristics (UUID filenames, absence of EXIF metadata, etc.). I then used the iOS API to retrieve the original creation date stored by the system and wrote this value back into the file’s metadata before upload.
However, the pull request was declined due to the policy of not modifying the original files, as this increases the risk of data loss.
I understand that decision from a technical standpoint, but I honestly don’t see many other ways to properly fix this issue. No matter what, the creation date will have to be extracted directly from the mobile app, since it’s the only place where that information still exists. The real challenge is figuring out where and how to make use of that date — and that’s the part I haven’t been able to solve yet.
I'm open to any ideas or discussions on how to solve this issue. I believe it's important to address in order to ensure that all media is correctly stored and organized in Immich, which is one of the app's core goals.