After FileCreateDate<datetimeoriginal win file properties not show correct time

Started by BeTePoK, November 23, 2023, 10:56:05 AM

Previous topic - Next topic

BeTePoK

After FileCreateDate<datetimeoriginal in Windows Explorer file properties not show correect times.

exiftool -overwrite_original -P -d IMG_%Y%m%d_%H%M%S.%%e -SubSecDateTimeOriginal<datetimeoriginal -FileCreateDate<datetimeoriginal -FileModifyDate<datetimeoriginal $FilePath

The result is a file with the name IMG_20061013_195304.jpg but when I look at the properties of the file in Windows Explorer, the date of creation and modification is one hour ahead - 2006/10/13 20:53.
exiftool also displays the correct date and time.

---- ExifTool ----
ExifToolVersion                 : 12.69
Warning                         : FileName encoding not specified
---- System ----
FileName                        : IMG_20061013_195304.jpg
Directory                       : //cloud-01/Photos/
FileSize                        : 2.2 MB
FileModifyDate                  : 2006:10:13 19:53:04+02:00
FileAccessDate                  : 2006:10:13 19:53:04+02:00
FileCreateDate                  : 2006:10:13 19:53:04+02:00
FilePermissions                 : -rw-rw-rw-

What kind of magic is this?

StarGeek

Your command works correctly for me once I put quotes around the tag copy operations.  Also, you do not have a file rename in this command.

First, the starting dates
C:\>exiftool -time:all -G1 -a -s Y:\!temp\x\y\Test4.jpg
[System]        FileModifyDate                  : 2023:11:23 11:43:24-08:00
[System]        FileAccessDate                  : 2023:11:23 11:49:52-08:00
[System]        FileCreateDate                  : 2023:11:23 11:43:24-08:00
[ExifIFD]       DateTimeOriginal                : 2006:10:13 19:53:04

What Windows shows


Then running your command, with the < parts properly quoted
C:\>exiftool -overwrite_original -P -d IMG_%Y%m%d_%H%M%S.%%e "-SubSecDateTimeOriginal<datetimeoriginal" "-FileCreateDate<datetimeoriginal" "-FileModifyDate<datetimeoriginal" Y:\!temp\x\y\Test4.jpg
    1 image files updated

C:\>exiftool -time:all -G1 -a -s Y:\!temp\x\y\Test4.jpg
[System]        FileModifyDate                  : 2006:10:13 19:53:04-07:00
[System]        FileAccessDate                  : 2023:11:23 11:50:50-08:00
[System]        FileCreateDate                  : 2006:10:13 19:53:04-07:00
[ExifIFD]       DateTimeOriginal                : 2006:10:13 19:53:04

And Windows shows


I also double checked with ver 12.69 but there was no change.

Also note that it is pointless to copy DateTimeOriginal into SubSecDateTimeOriginal unless there have been alterations to SubSecTimeOriginal or OffsetTimeOriginal.  You're just copying the same data back onto itself.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

StarGeek

I found this old thread which seems to be the same thing.  Checking with dir on the file shows that incorrect hour.  Except it is an hour behind at 6:53 PM/18:53
C:\>dir Y:\!temp\x\y\Test4.jpg
 Volume in drive Y is DrivePool
 Volume Serial Number is 3881-4F27

 Directory of Y:\!temp\x\y

2006-10-13  06:53 PM           445,646 Test4.jpg
               1 File(s)        445,646 bytes
               0 Dir(s)  8,991,977,459,712 bytes free

This is something happening in Windows and exiftool can't fix Windows' bugs.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

BeTePoK

Quote from: StarGeek on November 23, 2023, 03:06:54 PMAlso, you do not have a file rename in this command.
Yes, I deleted it accidentally
exiftool.exe -overwrite_original -P -d IMG_%Y%m%d_%H%M%S.%%e -filename<datetimeoriginal -SubSecDateTimeOriginal<datetimeoriginal -FileCreateDate<datetimeoriginal -FileModifyDate<datetimeoriginal $FilePath

I tried to use the TS plugin in Total Commander using [=exif.DateDigitized] as a source to change the file attribute and everything worked. The file displays the correct date and time in Windows Explorer.
I can't understand why this is happening.