ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: LitoFrame on November 26, 2020, 10:23:20 AM

Title: [System] FileModifyDate
Post by: LitoFrame on November 26, 2020, 10:23:20 AM
Hello,
when I shift dates with exiftool "-AllDates-=0:0:0 1:0:0" image.jpg command in terminal the FileModifyDate in System section metadata updated to the current date. Adobe Bridge uses this date for Date File Modified.
Is it possible to shift this FileModifyDate with the necessary amount instead of update it to the current date?
Thanks!
Title: Re: [System] FileModifyDate
Post by: Phil Harvey on November 26, 2020, 10:50:37 AM
Sure.  Add this to your command: "-FileModifyDate-=0:0:0 1:0:0"

Note that this is simpler, and does the same thing: -alldates-=1 -FileModifyDate-=1

- Phil
Title: Re: [System] FileModifyDate
Post by: StarGeek on November 26, 2020, 12:22:45 PM
Quote from: LitoFrame on November 26, 2020, 10:23:20 AMIs it possible to shift this FileModifyDate with the necessary amount instead of update it to the current date?

If you wish to keep the FileModifyDate unaltered from the current value, you can add the -P (-preserve) option (https://exiftool.org/exiftool_pod.html#P--preserve).
Title: Re: [System] FileModifyDate
Post by: LitoFrame on November 26, 2020, 01:34:51 PM
Great, thank you!

I prefer the first solution, when the FileModifyDate also changes with the same amount like all the other dates.

Thanks for your help!:)