https://bugzilla.wikimedia.org/show_bug.cgi?id=64084
Bug ID: 64084
Summary: Time data-type inconsistently zero-pads year value
(dates earlier than year 1000?)
Product: MediaWiki extensions
Version: unspecified
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: Unprioritized
Component: WikidataRepo
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Web browser: ---
Mobile Platform: ---
== REPRODUCTION ==
* Go to https://www.wikidata.org/wiki/Special:Export/q937 and get the value for
p570
* Go to https://www.wikidata.org/wiki/Special:Export/q44269 and get the value
for p570
* For convenience's sake, the two values are listed below:
q937 +00000001955-04-18T00:00:00Z
q44269 +000000000343-12-06T00:00:00Z
* Note that the date with year 343 has an extra leading 0
== RELEVANCE ==
* See https://bugzilla.wikimedia.org/show_bug.cgi?id=30148#c11 for an example
of how this causes a bug elsewhere
* Basically, Module code is calling string.sub(d, 9, 18), and is not expecting
the year 343 date to have an extra 0
: It ends up extracting a date of "00343-12-0" and triggers the year 10,000
bug.
* As a result, Nicolau de Mira shows up as having died in 2003 instead of 343.
== OTHER NOTES ==
* This does not appear related to
https://bugzilla.wikimedia.org/show_bug.cgi?id=26181 which is for the semantic
wiki
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l