I rewrote a lot of this after looking at the script on https://github.com/werner-j/immich-datetime-fix/ Thanks for the help!
A bash script to restore original timestamps from Google Photos Takeout exports by reading .supplemental-metadata.json
files and updating EXIF metadata in place.
Problem: Google Photos Takeout exports modify file timestamps during the zip process, breaking chronological sorting in photo management apps like Immich. While Google includes the original timestamps in .supplemental-metadata.json
files, most apps ignore these.
Solution: This script restores original timestamps from Google's metadata files to EXIF data, enabling proper date-based sorting and organization without moving or copying files.