GNOME Bugzilla – Bug 723794
"Unsupported time format" error when loading image w/ Darwin Core metadata
Last modified: 2018-05-22 12:33:10 UTC
(Related to bug #719522): When loading an image with the Darwin Core metadata (DwC), this message is displayed on the console: ** (process:330): WARNING **: Unsupported time format This can be reproduced using test/gexiv2-dump and the attached sample image. Note that the Darwin Core metadata does appear to be available, so it's possible this is benign.
Created attachment 268338 [details] Darwin Core sample image
I do not think, that it is a problem of darwin core. Since darwin core is not an implemented namespace for xmp data in exiv2, it can be read, but any field is interpreted as plain text. But the file has a special time format in IPTC data: Iptc.Application2.TimeCreated: 13:59:26.054-06:00 And the exiv2 tag reference sais, the time format for that field is without the milliseconds. I think, that entry caused the warning.
Taking a look at this and it appears even weirder. $ exiv2 -g TimeCreated ../DwC-SampleImage_1024x768.jpg Warning: Unsupported time format Iptc.Application2.TimeCreated String 15 135926.054-0600 Here is an example that exiv2 does not complain about: $ exiv2 -g TimeCreated gexiv2.iptc.time.jpg Iptc.Application2.TimeCreated Time 11 13:59:26-06:00 So it's not just the inclusion of subSec's, but the lack of separators. And the wrong data type. Just for the record, the lack of separators and the inclusion of subSec's appears to be valid under ISO 8601. This looks like a wicked example of bug #712463: Some date formats in the wild do not conform to EXIF standard. Exiv2 has some built in functions to convert date/time formats, I wonder if someone could extend those to accept and convert these out-of-spec wild examples?
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gexiv2/issues/13.