Use -globalTimeShift to change tags and file attributes

Started by tux23, February 22, 2015, 08:20:30 AM

Previous topic - Next topic

tux23

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!

Phil Harvey

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
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).