Modify Date could not be changed

Started by dupont, December 25, 2019, 05:44:08 PM

Previous topic - Next topic

dupont

I am trying to shift all date fields from a Sony RAW file (.ARW) two days with the command:

exiftool "-AllDates+=0:0:2 0" "-ModifyDate+=0:0:2 0" "-SonyDateTime+=0:0:2 0" .

However, it appears that the most important "Modify Date", as shown from an example file below, was not shifted.

Question: What is going on, and how can I shift "Modify Date"?


original
File Modification Date/Time     : 2019:12:25 11:17:48-08:00
File Access Date/Time           : 2019:12:25 14:37:41-08:00
File Inode Change Date/Time     : 2019:12:25 11:17:48-08:00
Date/Time Original              : 2019:12:19 11:07:42
Create Date                     : 2019:12:19 11:07:42
Sony Date Time                  : 2019:12:19 11:07:42
Modify Date                     : 2019:12:19 11:07:42
Create Date                     : 2019:12:19 11:07:42-08:00
Date/Time Original              : 2019:12:19 11:07:42-08:00
Modify Date                     : 2019:12:19 11:07:42-08:00

after command
File Modification Date/Time     : 2019:12:25 14:37:41-08:00
File Access Date/Time           : 2019:12:25 14:37:40-08:00
File Inode Change Date/Time     : 2019:12:25 14:37:41-08:00
Date/Time Original              : 2019:12:21 11:07:42
Create Date                     : 2019:12:21 11:07:42
Sony Date Time                  : 2019:12:21 11:07:42
Modify Date                     : 2019:12:19 11:07:42
Create Date                     : 2019:12:21 11:07:42-08:00
Date/Time Original              : 2019:12:21 11:07:42-08:00
Modify Date                     : 2019:12:19 11:07:42-08:00



StarGeek

Run this command to see possible duplicate tags and their locations (see FAQ #3)
exiftool -a -G1 -s File.jpg

If you can provide a sample file, that would be helpful as well.
"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

dupont

Thank you for the quick reply.

Here is the result of the command

exiftool -a -G1 -s test.ARW | grep Date


[System]        FileModifyDate                  : 2019:12:26 08:39:58-08:00
[System]        FileAccessDate                  : 2019:12:26 08:40:37-08:00
[System]        FileInodeChangeDate             : 2019:12:26 08:39:58-08:00
[IFD0]          ModifyDate                      : 2019:12:20 20:00:57
[ExifIFD]       DateTimeOriginal                : 2019:12:20 20:00:57
[ExifIFD]       CreateDate                      : 2019:12:20 20:00:57
[Sony]          SonyDateTime                    : 2019:12:20 20:00:57
[IFD1]          ModifyDate                      : 2020:12:18 20:00:57
[Composite]     SubSecCreateDate                : 2019:12:20 20:00:57-08:00
[Composite]     SubSecDateTimeOriginal          : 2019:12:20 20:00:57-08:00
[Composite]     SubSecModifyDate                : 2020:12:18 20:00:57-08:00


It would appear that there were two occurrences of ModifyDate and ExifTool only shifted the first one. The following did the job:
exiftool "-IFD1:ModifyDate+=0:0:2 0" test.ARW


StarGeek

I believe that ModifyDate in IDF1 is non-standard, which is why it doesn't get shifted.
"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

Phil Harvey

Using the -v2 option, you can see what ExifTool will do when you try to shift ModifyDate:

> exiftool -modifydate+=1 -v2 test.jpg
Shifting PDF:ModifyDate if tag exists
Shifting MIE-Doc:ModifyDate if tag exists
Shifting PNG:ModifyDate if tag exists
Shifting PostScript:ModifyDate if tag exists
Shifting QuickTime:ModifyDate if tag exists
Shifting XMP-xmp:ModifyDate if tag exists
Shifting IFD0:ModifyDate if tag exists


As StarGeek mentioned, IFD1 is not the standard EXIF location for ModifyDate, so you must specify IFD1 if you want ExifTool to write it.  By default, ExifTool writes ModifyDate only to IFD0 in EXIF.

- 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 ($).