I have been trying to fix the dates in my mobile photos because after moving everything from my old phone I had a bunch of pics from whatsapp archives etc stored on my computer, and these photos appear on Google Photos (both the web app and the mobile app on my new phone) with the capture dates all wrong. Luckily the filenames have the correct date so I’ve used the following command to fix the tags:
$ exiftool -s "-alldates<filename" "-filemodifydate<filename" "-filecreatedate<filename" IMG_*.jpg
What I’m doing is to copy the date contained in the filenames (e.g., IMG_20170210_171030.jpg is an image captured on the 10th of February, 2017, at 17:10:30) to the three main exif tags
ModifyDate – shortened as
alldates – as well as the actual file modification and creation dates (
This works, no problem, but when I sync back the files to Google Photos / Drive, the photos are not shown as updated on the web app or the mobile app. So where does Google Photos take the photo creation date from? Which tag or what other information in the file?