ExifTool Forum

ExifTool => Bug Reports / Feature Requests => Topic started by: bernd! on January 10, 2019, 04:32:35 AM

Title: Warning: Error packing shifted time (2018:12:21 12:54:49) when shifting ModifyDa
Post by: bernd! on January 10, 2019, 04:32:35 AM
Hi all

ExifTool fails with timeshift in a couple of files. What makes me wondering is, that 44 of 56 files processed fine and 12 will fail with the following message:

"c:\Program Files\other Tools\exiftool.exe" "-AllDates-=0:0:0 1:17:20" *.JPG
Warning: Error packing shifted time (2018:12:21 10:32:47) when shifting ModifyDate - _DSF1346_ON1_Cloud.jpg
Warning: Error packing shifted time (2018:12:21 10:37:49) when shifting ModifyDate - _DSF1347_ON1_Cloud.jpg
Warning: Error packing shifted time (2018:12:21 10:448:8) when shifting ModifyDate - _DSF1354_ON1_Cloud.jpg
Warning: Error packing shifted time (2018:12:21 12:06:46) when shifting ModifyDate - _DSF1356_ON1_Cloud.jpg
Warning: Error packing shifted time (2018:12:21 12:07:43) when shifting ModifyDate - _DSF1362_ON1_Cloud.jpg
Warning: Error packing shifted time (2018:12:21 10:539:59) when shifting ModifyDate - _DSF1363_ON1_Cloud.jpg
Warning: Error packing shifted time (2018:12:21 10:533:53) when shifting ModifyDate - _DSF1365_ON1_Cloud.jpg
Warning: Error packing shifted time (2018:12:21 12:36:42) when shifting ModifyDate - _DSF1400_ON1_Cloud.jpg
Warning: Error packing shifted time (2018:12:21 11:19:48) when shifting ModifyDate - _DSF1409_ON1_Cloud.jpg
Warning: Error packing shifted time (2018:12:21 11:29:42) when shifting ModifyDate - _DSF1450_ON1_Cloud.jpg
Warning: Error packing shifted time (2018:12:21 11:36:49) when shifting ModifyDate - _DSF1475_ON1_Cloud.jpg
Warning: Error packing shifted time (2018:12:21 12:54:49) when shifting ModifyDate - _DSF1481_ON1_Cloud.jpg
   44 image files updated

OS = Windows 10, 1809; ExifTool = 11,24 (must current); Camera = Fujifilm X-T2; JPEGs created with ON1 Photo RAW 2019.1

Same problem / symtom happens with X-E3 and X-T3

Update:
I found that on files, failing the ModifDate differs regarding the minutes:

ModifyDate                      : 2018:12:21 13:9:55

Instead of

ModifyDate                      : 2018:12:21 13:09:55

Any help is appreciated!

With warm regards, Bernd

Title: Re: Warning: Error packing shifted time (2018:12:21 12:54:49) when shifting ModifyDa
Post by: Phil Harvey on January 10, 2019, 07:27:28 AM
Right.  The shift feature has been implemented to preserve the existing format of the date/time string, but the shifted time does not fit in this format because there aren't enough digits for the minutes.

For now you will have to fix the incorrectly formatted values first.  You can do it like this:

exiftool -tagsfromfile @ -alldates -ext jpg DIR

After doing this the times should shift properly.

I will look into modifying ExifTool to allow the time shift feature to fix date/time formatting problems like this.

- Phil
Title: Re: Warning: Error packing shifted time (2018:12:21 12:54:49) when shifting ModifyDa
Post by: bernd! on January 11, 2019, 10:14:13 AM
Thanks Phill!