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
Version: unspecified
Severity: major
Whiteboard: u=dev c=backend p=0
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=26181
https://bugzilla.wikimedia.org/show_bug.cgi?id=60999