Changing GPS location changed date on photos
I went through hundreds of photos on Apple photos and entered the GPS location. Then I uploaded the photos to Immich (this was a new install), the dates are correct in Apple but on Immich the date is the date I changed the location on. Photos from 2010 are showing yesterdays date. Is there a way to get everything corrected?
12 Replies
:wave: Hey @wind_cleaver,
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. :ballot_box_with_check: 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.
Successfully submitted, a tag has been added to inform contributors. :white_check_mark:.env
UPLOAD_LOCATION=/mnt/ciri/photos
DB_DATA_LOCATION=/opt/immich/data
TZ=America/New_York
IMMICH_VERSION=release
DB_PASSWORD=henney2020!
DB_USERNAME=postgres
DB_DATABASE_NAME=immich
Immich server: v1.130.3
Immich app: 1.30.0 build.198
Ubuntu 24.04.2
Sounds like your files don't have proper time metadata
How do I go about getting the correct time metadata?
Check what's currently on the file first
The location data didn’t come over either
Interesting...
I just exported some photos (with their .xmp files) from the "Photos" app. on my Mac to my NAS, then imported them to Immich in my 'External Library', and none of them have location data either.
The location shows fine in the Phone, in the 'Photos' app., and in the exported images if viewed by an external app. (Pixea or Preview) on the Mac....so Immich is missing something here.
I have just discovered that this .xmp problem is NOT an Immich issue...
Basically when Lightroom created the .xmp files it was dropping the "-" sign at the beginning of the latitude field...
So in Immich it "looked like" there was no map being shown, but it was showing a map in the middle of the ocean as the co-ordinates were wrong - it looked like there was no map, but it was just a blank/dark image of water.
Did it do like "latitude: 50, Someothervar: East" maybe?
It had values in the .xmp file such as:
<exif:GPSLatitude>32.519316666666666</exif:GPSLatitude>
when it should have been:
<exif:GPSLatitude>-32.519316666666666</exif:GPSLatitude>
So the coordinates would land in the middle of the ocean...
NB. the ones above are not the real latitude.
I understand, but did it also add some extra value that would mean + / - ? 😛
Nope, it was as simple as a missing '-'.
I just ran sed over them to fix them and now they are 100% correct.
All the other values are fine.
Ha! Looks like the problem actually rests with MacOS Photos, if you export the xmp sidecar with the image.
https://community.adobe.com/t5/lightroom-classic-discussions/gps-location-imported-from-iphone-has-wrong-hemisphere/td-p/10829873
GPS location imported from iPhone has wrong hemisphere
In LR Classic 9.1, the Map module has the wrong hemisphere (E versus W) for the GPS location. So instead of showing the location as northern California, it shows it in China. I exported iPhone photos from the Photos app on a Mac (export unmodified original; checked Export IPTC as XMP). When I look...