Date modification

Started by macfun, April 02, 2020, 05:26:53 PM

Previous topic - Next topic

macfun

Hi everyone

I'm a new user of exiftool, everything was going very well until now, because I'm struggling a bit for one thing...
During my last holidays I used my old gopro, and the date was set on 2013... I just want to change the date to the real date of the picture because I use synology moments and my pictures are sorted by date.

So, I tried  exiftool '-alldates=yyyy:mm:dd hh:mm:ss' but it doesn't fully work... It changes some of the dates, but not all of them... I want to have the date 2019:08:03

If I use exiftool -time:all -a -G0:1 -s, here are the results before -alldates
[File:System]   FileModifyDate                  : 2013:01:01 00:16:42+01:00
[File:System]   FileAccessDate                  : 2020:04:02 23:03:04+02:00
[File:System]   FileInodeChangeDate             : 2020:04:02 23:03:03+02:00
[EXIF:IFD0]     ModifyDate                      : 2013:01:01 00:16:42
[EXIF:ExifIFD]  DateTimeOriginal                : 2013:01:01 00:16:42
[EXIF:ExifIFD]  CreateDate                      : 2013:01:01 00:16:42


here are the results after :
[File:System]   FileModifyDate                  : 2020:04:02 23:19:53+02:00
[File:System]   FileAccessDate                  : 2020:04:02 23:20:07+02:00
[File:System]   FileInodeChangeDate             : 2020:04:02 23:19:53+02:00
[EXIF:IFD0]     ModifyDate                      : 2019:08:03 15:30:00
[EXIF:ExifIFD]  DateTimeOriginal                : 2019:08:03 15:30:00
[EXIF:ExifIFD]  CreateDate                      : 2019:08:03 15:30:00


Moreover, if I do a cmd+I with my mac, the results are :
creation : 2020:04:02 23:19:53
modification : 2020:04:02 23:19:53

I had différents errors, the last one is Warning: [minor] Unrecognized MakerNotes

Do you have any solution to change all the dates to the one I like ?

Many thanks !! :)


Phil Harvey

Try this:

exiftool "-time:all=2019:08:03 15:30:00" -wm w DIR

This should change all writable date/time tags except =the filesystem ones.

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

macfun

Hi Phil,

Thanks for all your amazing job with ExifTool and for your reply !

Unfortunately, I think it's not working, I've got an error message : Warning: [minor] Maker notes could not be parsed - and it has set the EXIF dates as wanted but not the system dates ... :
[File:System]   FileModifyDate                  : 2020:04:03 08:38:02+02:00
[File:System]   FileAccessDate                  : 2020:04:03 08:38:03+02:00
[File:System]   FileInodeChangeDate             : 2020:04:03 08:38:02+02:00
[EXIF:IFD0]     ModifyDate                      : 2019:08:03 15:30:00
[EXIF:ExifIFD]  DateTimeOriginal                : 2019:08:03 15:30:00
[EXIF:ExifIFD]  CreateDate                      : 2019:08:03 15:30:00


Maybe it's because it's a GoPro picture ? ::)

StarGeek

Quote from: macfun on April 03, 2020, 02:45:02 AMI've got an error message : Warning: [minor] Maker notes could not be parsed -
That's just a warning.  As long as the other data is changed, then you can ignore it.

Quoteand it has set the EXIF dates as wanted but not the system dates ...

As Phil said (emphasis mine)
Quote from: Phil Harvey on April 02, 2020, 07:24:01 PM
This should change all writable date/time tags except =the filesystem ones.

Add -FileModifyDate='2019:08:03 15:30:00' to fix that.

Also, since you mentioned it's on Synology, it has been reported here that the "Drive" package will prevent any attempts to change the file system dates.
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

macfun

StarGeek, thanks for your reply  ;)

QuoteThat's just a warning.  As long as the other data is changed, then you can ignore it.

Ok, thanks, I'll just ignore it !

QuoteAs Phil said (emphasis mine)
Quote from: Phil Harvey on April 02, 2020, 07:24:01 PM
This should change all writable date/time tags except =the filesystem ones.

Sorry about that, I've read to quickly... Quarantine + short night effet probably  ::)

QuoteAdd -FileModifyDate='2019:08:03 15:30:00' to fix that.

It worked, thanks ! Not at the first time but I did it twice and it worked... I've got a lot of pictures to edit, hope everything we'll be fine !

QuoteAlso, since you mentioned it's on Synology, it has been reported here that the "Drive" package will prevent any attempts to change the file system dates.

Actually the photos I'm trying to edit are still on my computer hard drive. I'll transfer them on the synology when they'll be ready  ;D

Thanks again :-)