ExifTool Forum

ExifTool => Newbies => Topic started by: Quant007 on July 01, 2020, 11:00:05 AM

Title: Support UTC
Post by: Quant007 on July 01, 2020, 11:00:05 AM
Hallo,
I use the following commandline for a jpg:
exiftool -DateTimeOriginal>CreateDate -DateTimeOriginal>FileModifyDate -DateTimeOriginal>FileCreateDate ....
As a result I get:
---- File ----
File Modification Date/Time     : 2020:01:03 11:23:50+01:00
File Creation Date/Time         : 2020:01:03 11:23:50+01:00

---- EXIF ----
Date/Time Original              : 2020:01:03 11:23:50
Create Date                     : 2020:01:03 11:23:50

If the file is created in winter the offset is +1 an in summer the offset is +2.
How can I get the information witch offset is stored in the file?
Best regards
Quant007
Title: Re: Support UTC
Post by: StarGeek on July 01, 2020, 11:29:47 AM
The EXIF tags you list don't have a time zone, only the system time stamps.  Those tags are from the underlying operating system and that is what figures out the time zone.

To list just them, you could use the %z code with the -d (dateFormat) option (https://exiftool.org/exiftool_pod.html#d-FMT--dateFormat). See Common Date Format Codes (https://exiftool.org/filename.html#codes) for all date format codes.

Example
C:\>exiftool -time:all -g1 -a -s -d "%z" y:\!temp\Test4.jpg
---- System ----
FileModifyDate                  : -0700
FileAccessDate                  : -0700
FileCreateDate                  : -0800