Image-ExifTool - Re: Problem Setting FileModifyDate

Posted on Mon Jul 14 11:41:36 2008 by justin in response to 8292 (See the whole thread of 26)
Re: Problem Setting FileModifyDate

Hi Phil, right, SWMBO has emailed me the files in question and I have performed the tests below. My work computer is also a windows XP pro sp3 machine and I'm using exiftool 7.36. However note that I can successfully shift the filemodifydate by one hour prior to setting it to the exif createdate. Only after that operation can I no longer shift the filemodifydate:

C:\nefs>exiftool -alldates -fileModifyDate -s -G1 * ======== 2007-03-25_D50_DSC_4513.NEF [ExifIFD] DateTimeOriginal : 2007:03:25 18:35:16 [ExifIFD] CreateDate : 2007:03:25 18:35:16 [IFD0] ModifyDate : 2007:03:25 18:35:16 [File] FileModifyDate : 2008:07:14 10:01:57 ======== 2007-03-25_D50_DSC_4514.NEF [ExifIFD] DateTimeOriginal : 2007:03:25 18:35:37 [ExifIFD] CreateDate : 2007:03:25 18:35:37 [IFD0] ModifyDate : 2007:03:25 18:35:37 [File] FileModifyDate : 2008:07:14 10:02:07 ======== 2007-03-25_D50_DSC_4515.NEF [ExifIFD] DateTimeOriginal : 2007:03:25 18:35:59 [ExifIFD] CreateDate : 2007:03:25 18:35:59 [IFD0] ModifyDate : 2007:03:25 18:35:59 [File] FileModifyDate : 2008:07:14 10:02:02 3 image files read C:\nefs>exiftool "-fileModifyDate-=1" * -v3 Shifting File:FileModifyDate if tag exists ======== 2007-03-25_D50_DSC_4513.NEF + FileModifyDate = '1216022517' ======== 2007-03-25_D50_DSC_4514.NEF + FileModifyDate = '1216022527' ======== 2007-03-25_D50_DSC_4515.NEF + FileModifyDate = '1216022522' 3 image files updated C:\nefs>exiftool -alldates -fileModifyDate -s -G1 * ======== 2007-03-25_D50_DSC_4513.NEF [ExifIFD] DateTimeOriginal : 2007:03:25 18:35:16 [ExifIFD] CreateDate : 2007:03:25 18:35:16 [IFD0] ModifyDate : 2007:03:25 18:35:16 [File] FileModifyDate : 2008:07:14 09:01:57 ======== 2007-03-25_D50_DSC_4514.NEF [ExifIFD] DateTimeOriginal : 2007:03:25 18:35:37 [ExifIFD] CreateDate : 2007:03:25 18:35:37 [IFD0] ModifyDate : 2007:03:25 18:35:37 [File] FileModifyDate : 2008:07:14 09:02:07 ======== 2007-03-25_D50_DSC_4515.NEF [ExifIFD] DateTimeOriginal : 2007:03:25 18:35:59 [ExifIFD] CreateDate : 2007:03:25 18:35:59 [IFD0] ModifyDate : 2007:03:25 18:35:59 [File] FileModifyDate : 2008:07:14 09:02:02 3 image files read C:\nefs>exiftool "-fileModifyDate<createdate" * -v3 ======== 2007-03-25_D50_DSC_4513.NEF Setting new values from 2007-03-25_D50_DSC_4513.NEF Writing File:FileModifyDate + FileModifyDate = '1174847716' ======== 2007-03-25_D50_DSC_4514.NEF Setting new values from 2007-03-25_D50_DSC_4514.NEF Writing File:FileModifyDate + FileModifyDate = '1174847737' ======== 2007-03-25_D50_DSC_4515.NEF Setting new values from 2007-03-25_D50_DSC_4515.NEF Writing File:FileModifyDate + FileModifyDate = '1174847759' 3 image files updated C:\nefs>exiftool -alldates -fileModifyDate -s -G1 * ======== 2007-03-25_D50_DSC_4513.NEF [ExifIFD] DateTimeOriginal : 2007:03:25 18:35:16 [ExifIFD] CreateDate : 2007:03:25 18:35:16 [IFD0] ModifyDate : 2007:03:25 18:35:16 [File] FileModifyDate : 2007:03:25 19:35:16 ======== 2007-03-25_D50_DSC_4514.NEF [ExifIFD] DateTimeOriginal : 2007:03:25 18:35:37 [ExifIFD] CreateDate : 2007:03:25 18:35:37 [IFD0] ModifyDate : 2007:03:25 18:35:37 [File] FileModifyDate : 2007:03:25 19:35:37 ======== 2007-03-25_D50_DSC_4515.NEF [ExifIFD] DateTimeOriginal : 2007:03:25 18:35:59 [ExifIFD] CreateDate : 2007:03:25 18:35:59 [IFD0] ModifyDate : 2007:03:25 18:35:59 [File] FileModifyDate : 2007:03:25 19:35:59 3 image files read C:\nefs>exiftool "-fileModifyDate-=1" * -v3 Shifting File:FileModifyDate if tag exists ======== 2007-03-25_D50_DSC_4513.NEF ======== 2007-03-25_D50_DSC_4514.NEF ======== 2007-03-25_D50_DSC_4515.NEF 0 image files updated 3 image files unchanged C:\nefs>exiftool -alldates -fileModifyDate -s -G1 * ======== 2007-03-25_D50_DSC_4513.NEF [ExifIFD] DateTimeOriginal : 2007:03:25 18:35:16 [ExifIFD] CreateDate : 2007:03:25 18:35:16 [IFD0] ModifyDate : 2007:03:25 18:35:16 [File] FileModifyDate : 2007:03:25 19:35:16 ======== 2007-03-25_D50_DSC_4514.NEF [ExifIFD] DateTimeOriginal : 2007:03:25 18:35:37 [ExifIFD] CreateDate : 2007:03:25 18:35:37 [IFD0] ModifyDate : 2007:03:25 18:35:37 [File] FileModifyDate : 2007:03:25 19:35:37 ======== 2007-03-25_D50_DSC_4515.NEF [ExifIFD] DateTimeOriginal : 2007:03:25 18:35:59 [ExifIFD] CreateDate : 2007:03:25 18:35:59 [IFD0] ModifyDate : 2007:03:25 18:35:59 [File] FileModifyDate : 2007:03:25 19:35:59 3 image files read C:\nefs>

Note that the problem with the hour difference between the createdate and the filemodfiydate still exists.

It's almost like once I have set the filemodifydate to the createdate, exiftool can no longer see the filemodifydate tag (in write mode). Having thought about this for a minute, I decided to try and manually set one of the images to the correct time:

C:\nefs>exiftool "-fileModifyDate=2007:03:25 18:35:59" *4515.NEF -v3 Writing File:FileModifyDate ======== 2007-03-25_D50_DSC_4515.NEF + FileModifyDate = '1174847759' 1 image files updated C:\nefs>exiftool -alldates -fileModifyDate -s -G1 *4515.NEF [ExifIFD] DateTimeOriginal : 2007:03:25 18:35:59 [ExifIFD] CreateDate : 2007:03:25 18:35:59 [IFD0] ModifyDate : 2007:03:25 18:35:59 [File] FileModifyDate : 2007:03:25 19:35:59 C:\nefs>

Notice that the data has been writen but the DST issue still exists. Justin..

Direct Responses: 8295 | Write a response