How to add a time zone info to a date field of a QuickTime video ?

Started by mahikeulbody, July 30, 2024, 12:59:06 PM

Previous topic - Next topic

mahikeulbody

Hi,
Date fields of a quicktime video are presumed to be UTC time and generally they have not time zone associated.
Is it possible to add a specified time zone to these fields with exiftool ? (in order to transform these dates into local dates)

StarGeek

No.  The Quicktime:CreateDate, Quicktime:ModifyDate, and all the Track*Date/Media*Date tags are UTC. You cannot add a time zone to them. This is true of any date/time tag that is listed as an "integer" on the Quicktime tags page.

The Quicktime:DateTimeOriginal and Quicktime:CreationDate are supposed to be set to local time and by default, exiftool will add the local time zone, though you can set any time zone you want when writing the time stamp. The reason exiftool will automatically add a time zone to these is because in the past, Apple Photos would give you wildly inaccurate date/times unless a time zone was included.  I don't know if that is still a bug.
* 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).

wywh

Quote from: StarGeek on July 30, 2024, 05:43:24 PMThe reason exiftool will automatically add a time zone to these is because in the past, Apple Photos would give you wildly inaccurate date/times unless a time zone was included.  I don't know if that is still a bug.

This was fixed in macOS 13 Ventura and later.

exiftool -ver 12.13 and later automatically adds time zone unless -n option is used.

- Matti

mahikeulbody

Quote from: StarGeek on July 30, 2024, 05:43:24 PMNo.  The Quicktime:CreateDate, Quicktime:ModifyDate, and all the Track*Date/Media*Date tags are UTC. You cannot add a time zone to them. This is true of any date/time tag that is listed as an "integer" on the Quicktime tags page.

The Quicktime:DateTimeOriginal and Quicktime:CreationDate are supposed to be set to local time and by default, exiftool will add the local time zone, though you can set any time zone you want when writing the time stamp. [...]

Thank you for the answer.