Author Topic: Modifying EXIF Creation and Modification Date at the same time  (Read 145 times)

zuiko3000

  • Jr. Member
  • **
  • Posts: 10
Hi,

I am changing time by one hour some files using -alldates but the files I get have today creation and modification date. I guess I have to copy EXIF to creation and modification date but I wonder if it's possible to get everything just in one pass. Change time to EXIF but also Creation and Modification Date/Time.

Best regards,

StarGeek

  • Global Moderator
  • ExifTool Freak
  • *****
  • Posts: 2368
Re: Modifying EXIF Creation and Modification Date at the same time
« Reply #1 on: March 20, 2019, 08:42:31 PM »
I'm guessing you mean you're using something like "-AllDates-=1" to shift by hour?

If so, try
exiftool -globaltimeshift -1 -TagsFromFile @ -AllDates "-FileModifyDate<DateTimeOriginal" "-FileCreateDate<DateTimeOriginal" FILE
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.

zuiko3000

  • Jr. Member
  • **
  • Posts: 10
Re: Modifying EXIF Creation and Modification Date at the same time
« Reply #2 on: March 24, 2019, 06:28:08 AM »
Thank you so much for your information.

It worked!

Best regards,

zuiko3000