ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: slhuyton on May 20, 2010, 02:33:19 PM

Title: DateTimeOriginal
Post by: slhuyton on May 20, 2010, 02:33:19 PM
I am trying to change the DateTimeOriginal tag in some NEF files where I somehow the date of the camera was set to 2007 instead of 2010.

This is the command as I want to add 3 years:

exiftool DateTimeOriginal+='3:0:0 0:0:0' DIR

I have the following NEF file in the subdirectory DIR:

DSC_3508.NEF

And I get the following response:

1 directories scanned
1 image files read

but the Date/Time Original    is still ---->          : 2007:05:02 16:57:52.15

Does anyone have any ideas?

Stuart

Title: Re: DateTimeOriginal
Post by: Christian Etter on May 20, 2010, 03:36:27 PM
Stuart,
not sure if it is a typo in your post, but you should add a '-' in front of the attribute name. Also, due to the single quotes you might have to put the whole argument in double quotes so it will be parsed as a single argument.
exiftool "-DateTimeOriginal+='3:0:0 0:0:0'" DIR

Christian
Title: Re: DateTimeOriginal
Post by: Phil Harvey on May 20, 2010, 05:53:53 PM
Christian is correct about the missing '-', but if you are in windows you should do this (just one set of double quotes):

exiftool -DateTimeOriginal+="3:0:0 0:0:0" DIR

- Phil
Title: Re: DateTimeOriginal
Post by: slhuyton on May 21, 2010, 04:56:03 AM
Thanks for the help.  It all works now.

Stuart