Set EXIF 2.32 Time Zone Tags with AllDates

Started by José Oliver-Didier, October 04, 2019, 09:11:41 PM

Previous topic - Next topic

José Oliver-Didier

Hello Phill,

AllDates is a shortcut for DateTimeOriginal, CreateDate and ModifyDate. Given that EXIF finally included timezones in their spec, why not allow updating the corresponding timezone tags (OffsetTime, OffsetTimeOriginal, OffsetTimeDigitized) with AllDates as well?

StarGeek

Just throwing this out there because shortcuts don't get enough attention, here's a shortcut that will do that.  If you already have a shortcut section in your .exiftool_config, just add the middle line to it.

%Image::ExifTool::UserDefined::Shortcuts = (
MyAllDates => ['AllDates','OffsetTimeDigitized','OffsetTimeOriginal','OffsetTime'],
);
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

Phil Harvey

Hi José,

The nice thing about AllDates is it represents tags with the same date/time formatting, so all these tags may be written with the same value.  I don't see how this would work if it is combined with the time zone tags.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).