After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 723794 - "Unsupported time format" error when loading image w/ Darwin Core metadata
"Unsupported time format" error when loading image w/ Darwin Core metadata
Status: RESOLVED OBSOLETE
Product: gexiv2
Classification: Other
Component: implementation
0.9.x
Other Linux
: Normal normal
: ---
Assigned To: Gexiv2 Maintainers
Gexiv2 Maintainers
Depends on:
Blocks:
 
 
Reported: 2014-02-06 20:24 UTC by Jim Nelson
Modified: 2018-05-22 12:33 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Darwin Core sample image (52.29 KB, image/jpeg)
2014-02-06 20:24 UTC, Jim Nelson
Details

Description Jim Nelson 2014-02-06 20:24:26 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.
Comment 1 Jim Nelson 2014-02-06 20:24:53 UTC
Created attachment 268338 [details]
Darwin Core sample image
Comment 2 Hartmut Kuhse 2014-09-18 06:56:31 UTC
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.
Comment 3 Alan Pater 2015-04-02 21:14:05 UTC
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?
Comment 4 GNOME Infrastructure Team 2018-05-22 12:33:10 UTC
-- 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.