ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: tux23 on February 22, 2015, 08:20:30 AM

Title: Use -globalTimeShift to change tags and file attributes
Post by: tux23 on February 22, 2015, 08:20:30 AM
Hi,

I found the -globalTimeShift parameter in the documentation. Unfortunately, it only lists the shifted dates, but doesn't change the tags and the file attributes (e.g. created at, modified at...), when I ran the example from the docs:

exiftool -globalTimeShift -1 -time:all test.jpg

I have a lot of photos from my last holiday, where I forgot to switch the timezones. So now, all photos and videos are +6 hours and some are +9 hours. Is the -globalTimeShift parameter the right way to change the Exif Tags and the file attributes?

Thank you very much!
Title: Re: Use -globalTimeShift to change tags and file attributes
Post by: Phil Harvey on February 22, 2015, 09:28:04 AM
No.  The -globalTimeShift option is needed only when you want to copy a shifted date/time value to another tag.

To simply shift the common EXIF date/time tags, plus the system date/time tags back by 1 hour, do this:

exiftool -alldates-=1 -filemodifydate-=1 -filecreatedate-=1 FILE

(Note that writing FileCreateDate is only supported in Windows.)

- Phil
Title: Re: Use -globalTimeShift to change tags and file attributes
Post by: tux23 on February 22, 2015, 10:55:19 AM
Ah great, thank you!