Author Topic: Date modification  (Read 192 times)

macfun

  • Newbie
  • *
  • Posts: 3
Date modification
« on: April 02, 2020, 05:26:53 PM »
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

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 16702
    • ExifTool Home Page
Re: Date modification
« Reply #1 on: April 02, 2020, 07:24:01 PM »
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, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

macfun

  • Newbie
  • *
  • Posts: 3
Re: Date modification
« Reply #2 on: April 03, 2020, 02:45:02 AM »
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

  • Global Moderator
  • ExifTool Freak
  • *****
  • Posts: 3791
Re: Date modification
« Reply #3 on: April 03, 2020, 03:08:19 AM »
I'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.

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

As Phil said (emphasis mine)
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.
Troubleshooting hints:
* When posting, include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).
* Double all percent signs (%) in a Windows batch file.
* If your GPS coords are negative, make sure and set the GpsLatitudeRef and GpsLongitudeRef tags correctly.

macfun

  • Newbie
  • *
  • Posts: 3
Re: Date modification
« Reply #4 on: April 03, 2020, 04:23:17 AM »
StarGeek, thanks for your reply  ;)

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

Ok, thanks, I'll just ignore it !

Quote
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.

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

Quote
Add -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 !

Quote
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.

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 :-)