Date game: Existing dates of birth & death formatting
Issue #142
new
When an existing date of birth/death property is shown, and it is just a year, it shows as the 1st of January of that year. Probably has similar issues to defaulting to the 1st when you have just the month and year?
It looks like https://bitbucket.org/magnusmanske/wikidata-game/src/4809133d0b3c80e03c7c7b37946340c48a3157b1/public_html/main.js?at=master&fileviewer=file-view-default#main.js-316 needs to check
b.precision
and adjust the length of thesubstr
accordingly.According to https://www.mediawiki.org/wiki/Wikibase/DataModel/JSON#time, 9 is year, 10 is month and 11 is day.