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 761236 - [gstreamer] incorrect date if only year tag is given in media file
[gstreamer] incorrect date if only year tag is given in media file
Status: RESOLVED FIXED
Product: tracker
Classification: Core
Component: Extractor
git master
Other Linux
: Normal normal
: ---
Assigned To: tracker-extractor
tracker-extractor
: 758766 760504 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2016-01-28 11:56 UTC by Marinus Schraal
Modified: 2016-03-19 16:33 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
start month & day at 1, not 0. (997 bytes, patch)
2016-01-28 11:56 UTC, Marinus Schraal
none Details | Review
tracker-extract: Fix year-only date extraction in gstreamer module (1.48 KB, patch)
2016-02-26 00:53 UTC, Carlos Garnacho
committed Details | Review

Description Marinus Schraal 2016-01-28 11:56:00 UTC
Created attachment 319918 [details] [review]
start month & day at 1, not 0.

Bug #758766 describes a problem with the album date reported by tracker always being 1 year before the actual date given in the file.

This is due to the date/year tag given is just a year number, not a full date. The gstreamer extractor then nulled all other fields and the the resulting dateTime would be eg. 1980-00-00 , somehow on retrieval the month & day 0's got seen as -1 month resulting in 1979-11-30 being retrieved.

Patch supplied fixes this problem by making sure the month & date start at 1.

Also fixes the written out string to be xsd:dateTime compliant, with UTC offset in hh:mm instead of hhmm .
Comment 1 Marinus Schraal 2016-01-28 12:04:20 UTC

*** This bug has been marked as a duplicate of bug 758766 ***
Comment 2 Marinus Schraal 2016-02-19 16:20:20 UTC
duping this got this a bit lost i guess..
Comment 3 Carlos Garnacho 2016-02-26 00:52:00 UTC
It got indeed, thanks for the patch.
Comment 4 Carlos Garnacho 2016-02-26 00:53:03 UTC
The following fix has been pushed:
d4528fe tracker-extract: Fix year-only date extraction in gstreamer module
Comment 5 Carlos Garnacho 2016-02-26 00:53:07 UTC
Created attachment 322429 [details] [review]
tracker-extract: Fix year-only date extraction in gstreamer module

ISO 8601 takes hours and months starting at 1. Passing 0 results in
wrong parsing of the resulting date string.
Comment 6 Carlos Garnacho 2016-02-26 01:00:24 UTC
*** Bug 758766 has been marked as a duplicate of this bug. ***
Comment 7 Carlos Garnacho 2016-03-19 16:33:59 UTC
*** Bug 760504 has been marked as a duplicate of this bug. ***