grubyak / google-photos-timezone-fix

Iterates over photos in given Google Photos album and edits date/time/timezone of each photo in order to fix their order
MIT License
29 stars 7 forks source link
google-photos timezone

google-photos-timezone-fix

This script iterates over photos in given Google Photos album and edits date/time/timezone of each photo in order to fix their order.

problem

Sometimes photos uploaded to Google Photos are arranged randomly and not based on the time/date that they were taken. This happens due to the fact that timezone included in EXIF is not respected and usually GMT-5 is being used instead, while timezone of the rest of the photos stays as orignally provided.

workaround

  1. Rearrange photos by hand (photos will again appear in wrong order if you will sort album)
  2. Select some/all photos and select "Edit date & time" option and then
    • shift selected photos to another timezone - make sure to not shift photos with correct timezone
    • set one date/time to all photos - your photo timeline will be flatten to one day and still order of the photos might not be correct

Both workarounds are not ideal which led me to implement this script which fixes date/time/timezone of each photo.

prerequisites

how it works

how to use it