https://bugzilla.wikimedia.org/show_bug.cgi?id=71956
Bug ID: 71956
Summary: Parsing errors around year 0
Product: MediaWiki extensions
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: major
Priority: Unprioritized
Component: WikidataClient
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Web browser: ---
Mobile Platform: ---
Year 0 is a bit of an odd beast, see https://en.wikipedia.org/wiki/0_%28year%29
The parsing seems to go wrong in different cases:
* 0 with precision year gives 0
* 0 with precision decade or larger gives +00000000000-01-01T00:00:00Z
* 1+ with precision year works
* 1-4 with precision decade gives +00000000004-01-01T00:00:00Z
* 1-49 with precision century gives +00000000049-01-01T00:00:00Z
* 1-499 with precision millenium gives +00000000499-01-01T00:00:00Z
* etc
See https://www.wikidata.org/wiki/Q5959 for an example. It's impossible to add
the birth date now without causing a parse error on Wikipedia.
--
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