Attempting to add one date to all dates did not give the expect result for the year.
Running exiftool -AllDates+=24 on a directory correctly modified the day and the month in all the files increasing the dates by one day but for those images where the original date was 31st December, the date after running the command was 1st January of the same year rather than 1st January of the following year.
The output was as expected
1 directories scanned
126 image files updated
Exiftool version 11.78 on MacOS 10.14.6
Can you show me a set of commands or upload a file so I can reproduce this?
This works for me:
% exiftool -ver
11.79
% exiftool a.jpg -alldates="2019:12:31 04:05:06"
1 image files updated
% exiftool a.jpg -alldates -a -G1
[ExifIFD] Date/Time Original : 2019:12:31 04:05:06
[ExifIFD] Create Date : 2019:12:31 04:05:06
[IFD0] Modify Date : 2019:12:31 04:05:06
% exiftool a.jpg -alldates+=24
1 image files updated
% exiftool a.jpg -alldates -a -G1
[ExifIFD] Date/Time Original : 2020:01:01 04:05:06
[ExifIFD] Create Date : 2020:01:01 04:05:06
[IFD0] Modify Date : 2020:01:01 04:05:06
I was using 11.79, but there should be no change in this from 11.78.
- Phil
Sorry for the delay in reply. I had forgotten to mark the topic for notification and then forgot all about it.
Thank you for the quick reply ... even if it has taken months for me to read it :-[
I am not sure what I did nor whether I was imagining things. I tried it more than once before posting but when I try it now, as you say, there is no problem. Sorry for wasting your time.