Skip to content

Instantly share code, notes, and snippets.

@lummie
Last active December 12, 2021 20:20
Show Gist options
  • Select an option

  • Save lummie/732b8cb0b478966b91a7f9244c7aeac7 to your computer and use it in GitHub Desktop.

Select an option

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

sm-g commented Feb 21, 2019

Copy link
Copy Markdown

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

sharnoff commented Dec 12, 2021

Copy link
Copy Markdown

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