Skip to content

Instantly share code, notes, and snippets.

@lummie
Last active December 12, 2021 20:20
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lummie/732b8cb0b478966b91a7f9244c7aeac7 to your computer and use it in GitHub Desktop.
Save lummie/732b8cb0b478966b91a7f9244c7aeac7 to your computer and use it in GitHub Desktop.
Change exif timezone with exiftool -8 hour
// I'm forever forgetting to adjust the time zone on my camera when taking pictures on vacation
// this uses the linux exiftool to adjust the timezone -8 hours for all images in a directory
exiftool "-DateTimeOriginal-=0:0:0 8:0:0" *
@sm-g
Copy link

sm-g commented Feb 21, 2019

This script does not change timezone, it change datetime. That is not enough, i.e., Google Photo could show file with invalid time. Use also . exiftool "-timeZoneOffset=-4" . (assume photo taken in UTC-4)

@sharnoff
Copy link

sharnoff commented Dec 12, 2021

To be EXIF >2.31 compatbile, use -OffsetTimeOriginal=-04:00. timeZoneOffset is not part of any official standard

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment