Hi!
I tried to change alle time tags so instead of -AllDates I used -time:all. But with that nothing has changed. Where is the problem?
exiftool '-time:All-=0000:00:00 01:00:00' -overwrite_original DIR
I could see that Exiftool generates tmp file of the files in the DIR but nothing was changed.
What program are you checking to see if the time has changed? When you check with exiftool has the time changed? If you are using some other program, you may have to tell it to reload the metadata.
Hello,
Exiftool reported in Terminal that 42 files where unchanged. This are all. And I checked the time tags before and after with exiftool.
Are there any date/time tags in these files? Use this command to see:
exiftool -time:all --system:all DIR
- Phil
Yes there are.
[System] FileModifyDate : 2016:11:11 17:50:11+01:00
[System] FileAccessDate : 2016:11:14 16:19:42+01:00
[System] FileInodeChangeDate : 2016:11:14 16:19:42+01:00
[IFD0] ModifyDate : 2016:11:11 17:50:11
[ExifIFD] DateTimeOriginal : 2016:11:11 17:50:11
[ExifIFD] CreateDate : 2016:11:11 17:50:11
Or the last three with your excluding of the system dates.
Could it be that one of the system times is not writeable and so the complete command failed?
OK, so it wasn't the most obvious problem then.
I can reproduce this and don't understand the behaviour myself. I'll look into it.
- Phil
Ah. This is a bug introduced in 10.28. Thanks for bringing it to my attention.
The problem is that 10.28 made three composite tags writable (SubSecDateTimeOriginal, SubSecCreateDate and SubSecModifyDate), but I neglected to make them shiftable. Unfortunately the writing of these tags is overriding what you are trying to do with the EXIF tags. You may use this command to do what you want:
exiftool '-time:All-=0000:00:00 01:00:00' '-exif:time:All-=0000:00:00 01:00:00' -overwrite_original DIR
This will be fixed in ExifTool 10.34 so that your original command will function as intended.
Thanks again for pointing out this problem.
- Phil
Edit: I just discovered that the same problem has existed for a long time in the Composite MWG date/time tags, but only shows up if the MWG module is loaded (ie. -use MWG). I'll look into fixing this too.
Hi Phil!
Many Thanks for your wonderful support of your program.
This is uniquely!
Quote from: Phil Harvey on November 14, 2016, 10:47:55 AM
...
You may use this command to do what you want:
exiftool '-time:All-=0000:00:00 01:00:00' '-exif:time:All-=0000:00:00 01:00:00' -overwrite_original DIR
I used this command and Terminal writes that the files have been updated, but they haven't.
The time has not changed. It is simply the old time.
What time hasn't changed? Perhaps you are looking at different time tags than the ones that are being changed by the command Phil gave you.
Above I posted all the time tags that are found in the file or are corresponding with the file.
All these time tags are unchanged.
Hmm, except for the system datetimes, I'm sure it should have worked. Can you post asmall sample image where it hasn't worked?
I just tested this myself and exiftool '-time:All-=0000:00:00 01:00:00' '-exif:time:All-=0000:00:00 01:00:00' definitely worked for me.
I'm sure it hadn't worked before. I checked the times with exiftool and they were the same.
Now it works. Don't know why. Ok now everything is fine.
Thank you very much for all your help.