FileCreateDate and -o OUTFILE not Working

Started by cocteau, March 27, 2015, 07:28:08 AM

Previous topic - Next topic

cocteau

Info Quell Picture:
exiftool.exe -s2 -G0:1:2:3 -e -f -File*Date "SOURCE.JPG"

ExifToolVersion = 9.90
FileName = SOURCE.JPG
FileModifyDate = 1427108400
FileAccessDate = 1427108400
FileCreateDate = 1427108400
FileType = JPEG

[File:System:Time:Main] FileModifyDate: 2015:03:23 12:00:00+01:00
[File:System:Time:Main] FileAccessDate: 2015:03:23 12:00:00+01:00
[File:System:Time:Main] FileCreateDate: 2015:03:23 12:00:00+01:00



Set FileModifyDate and FileCreateDate:
exiftool.exe -v2 -m -FileModifyDate="2015:03:24 16:00:00" -FileCreateDate="2015:03:24 16:00:00" -o "TARGET.JPG" "SOURCE.JPG"
Writing File:FileModifyDate
Writing File:FileCreateDate
======== SOURCE.JPG
'SOURCE.JPG' --> 'TARGET.JPG'
Rewriting SOURCE.JPG...
    + FileModifyDate = '1427209200'
    + FileCreateDate = '1427209200'



exiftool.exe -v1 -s2 -G0:1:2:3 -e -f -File*Date "TARGET.JPG"
ExifToolVersion = 9.90
FileName = TARGET.JPG
FileModifyDate = 1427209200
FileAccessDate = 1427209200
FileCreateDate = 1427108400
FileType = JPEG

[File:System:Time:Main] FileModifyDate: 2015:03:24 16:00:00+01:00
[File:System:Time:Main] FileAccessDate: 2015:03:24 16:00:00+01:00
[File:System:Time:Main] FileCreateDate: 2015:03:23 12:00:00+01:00


FileCreateDate is NOT 2015:03:24 16:00:00 ( 1427209200 )

Phil Harvey

This one may be difficult to track down, and I won't be able to look into it until next week.

The FileCreateDate uses the Windows library, and it looks as if it may also be using a different time zone, which would be unfortunate.  Could you check your system settings and tell me what your time zone is set to?  The C standard library appears to think it is +01:00, but Windows may have some other idea.

Or is this specifically a -o problem?  Does it work for you if you don't use -o?

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

cocteau

Yes is a -o problem.

exiftool.exe -v2 -m -FileModifyDate="2015:03:24 16:00:00" -FileCreateDate="2015:03:24 16:00:00" "TARGET.JPG"
Writing File:FileModifyDate
Writing File:FileCreateDate
======== TARGET.JPG
    + FileCreateDate = '1427209200'
    + FileModifyDate = '1427209200'
    1 image files updated


exiftool.exe -s2 -G0:1:2:3 -e -f -File*Date "SOURCE.JPG" "TARGET.JPG"
======== SOURCE.JPG
[File:System:Time:Main] FileModifyDate: 2015:03:23 12:00:00+01:00
[File:System:Time:Main] FileAccessDate: 2015:03:23 12:00:00+01:00
[File:System:Time:Main] FileCreateDate: 2015:03:23 12:00:00+01:00
======== TARGET.JPG
[File:System:Time:Main] FileModifyDate: 2015:03:24 16:00:00+01:00
[File:System:Time:Main] FileAccessDate: 2015:03:24 16:00:00+01:00
[File:System:Time:Main] FileCreateDate: 2015:03:24 16:00:00+01:00

Phil Harvey

OK, thanks.  I'll track this down when I get back next week.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

Phil Harvey

I found the problem and it will be fixed in ExifTool 9.91.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).