Main Menu

Timezone

Started by kkilgor, June 08, 2019, 10:31:32 PM

Previous topic - Next topic

kkilgor

Hi,

I use the following syntax to set the filecreatedate in my image and it works.
ExifTool "-FileCreateDate=2018:06:02 23:59:00-05:00" FILENAME

The only issue is that even though I use -5:00, it converts it to -4:00. Like below.
FileCreateDate                  : 2018:06:03 00:59:00-04:00

What am I doing wrong?

Thank you in adv.

StarGeek

The FileCreateDate is a property of the underlying OS.  The OS will automatically adjust the time zone to the correct one that has been set on the computer.  That means that the location the computer thinks it is located would have a time zone of -04:00 on the date in question.  Which would be correct for Eastern time, U.S. in June, e.g. EDT.

You can't directly change the time zones of the file system time stamps.  You can basically consider these to be set to UTC and the computer will adjust automatically based upon the location set for the computer.
* 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).

kkilgor

Great response. Thank you very much.