ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: Jens0079 on November 13, 2016, 03:16:47 PM

Title: -time:All does not change any file
Post by: Jens0079 on November 13, 2016, 03:16:47 PM
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.
Title: Re: -time:All does not change any file
Post by: StarGeek on November 13, 2016, 04:11:36 PM
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.

Title: Re: -time:All does not change any file
Post by: Jens0079 on November 13, 2016, 05:01:43 PM
Hello,

Exiftool reported in Terminal that 42 files where unchanged. This are all. And I checked the time tags before and after with exiftool.
Title: Re: -time:All does not change any file
Post by: Phil Harvey on November 14, 2016, 07:20:17 AM
Are there any date/time tags in these files?  Use this command to see:

exiftool -time:all --system:all DIR

- Phil
Title: Re: -time:All does not change any file
Post by: Jens0079 on November 14, 2016, 10:25:51 AM
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?
Title: Re: -time:All does not change any file
Post by: Phil Harvey on November 14, 2016, 10:36:16 AM
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
Title: Re: -time:All does not change any file
Post by: Phil Harvey on November 14, 2016, 10:47:55 AM
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.
Title: Re: -time:All does not change any file
Post by: Jens0079 on November 14, 2016, 06:12:40 PM
Hi Phil!

Many Thanks for your wonderful support of your program.
This is uniquely!
Title: Re: -time:All does not change any file
Post by: Jens0079 on November 18, 2016, 04:35:04 PM
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.
Title: Re: -time:All does not change any file
Post by: Hayo Baan on November 18, 2016, 06:14:37 PM
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.
Title: Re: -time:All does not change any file
Post by: Jens0079 on November 19, 2016, 03:20:48 AM
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.
Title: Re: -time:All does not change any file
Post by: Hayo Baan on November 19, 2016, 04:09:41 AM
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.
Title: Re: -time:All does not change any file
Post by: Jens0079 on November 19, 2016, 04:17:48 PM
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.