ExifTool Forum

ExifTool => Newbies => Topic started by: MayHare on August 08, 2022, 08:11:06 PM

Title: dates are different between ExifTool and Windows Properties
Post by: MayHare on August 08, 2022, 08:11:06 PM
For example, when I view the metadata of a video file using exiftool, all create dates are 7/12/2022 23:59:59. However, when I right click the same video file and view its metadata from Property-Details, Media Created date is 7/12/2022 6:59PM, which is a time that does not exist in the exiftool metadata. Does anyone know why this happens?
Title: Re: dates are different between ExifTool and Windows Properties
Post by: Phil Harvey on August 08, 2022, 09:24:54 PM
Try adding -api quicktimeutc to the command.

Devices are inconsistent about whether or not they write video timestamps in UTC, and by default ExifTool assumes local time which could be wrong for your videos.  See the API QuickTimeUTC option (https://exiftool.org/ExifTool.html#QuickTimeUTC) for an explanation.

- Phil
Title: Re: dates are different between ExifTool and Windows Properties
Post by: StarGeek on August 08, 2022, 11:27:40 PM
Matching post on reddit (https://www.reddit.com/r/AskPhotography/comments/wjof5h/editing_metadata_dates_are_different_between/)
Title: Re: dates are different between ExifTool and Windows Properties
Post by: MayHare on August 13, 2022, 06:11:55 PM
Quote from: Phil Harvey on August 08, 2022, 09:24:54 PMTry adding -api quicktimeutc to the command.

Devices are inconsistent about whether or not they write video timestamps in UTC, and by default ExifTool assumes local time which could be wrong for your videos.  See the API QuickTimeUTC option (https://exiftool.org/ExifTool.html#QuickTimeUTC) for an explanation.

- Phil

Thank you for your help! I have a followup question. After adding the QuickTimeUTC option, the data displayed in Properties is correct. However, when I view using exiftool, TrackCreateDate, TrackModifyDate, MediaCreateDate, and MediaModifyDate have been adjusted to 2022:07:13 04:59:59, while Date/Time Original, CreateDate and ModifyDate remained on 2022:07:12 23:59:59. Is there any way to adjust the former dates?
Title: Re: dates are different between ExifTool and Windows Properties
Post by: StarGeek on August 13, 2022, 09:34:22 PM
You would do it the same way, though you can shorten the command by using wildcards
exiftool -api QuickTimeUTC -Track*Date="2022:07:12 18:59:59" -Media*Date="2022:07:12 18:59:59" file.mp4