GNOME Bugzilla – Bug 761236
[gstreamer] incorrect date if only year tag is given in media file
Last modified: 2016-03-19 16:33:59 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 .
*** This bug has been marked as a duplicate of bug 758766 ***
duping this got this a bit lost i guess..
It got indeed, thanks for the patch.
The following fix has been pushed: d4528fe tracker-extract: Fix year-only date extraction in gstreamer module
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.
*** Bug 758766 has been marked as a duplicate of this bug. ***
*** Bug 760504 has been marked as a duplicate of this bug. ***