Last modified: 2013-11-20 09:22:38 UTC
I'm looking at File:Sketch_map_of_Metlakahtla_Annette_Island,_Alaska,_to_show_the_part_seized_by_the_misson._From,_Metlakahtla_case._A...._-_NARA_-_298063.jpg, where there is only a bare year in the image description. In Media Viewer, rather than giving "1926" as the date, it displays as "1/1/1926", which is not exactly correct.
Sorry, that's https://commons.wikimedia.org/wiki/File:Sketch_map_of_Metlakahtla_Annette_Island,_Alaska,_to_show_the_part_seized_by_the_misson._From,_Metlakahtla_case._A...._-_NARA_-_298063.jpg
I don't think solving this is worth this much as the effort of creating a library for parsing/representing/displaying partial dates. Wikidata will support date precision, so once we switch to that, such cases will be easy to handle; how to import partial dates correctly into Wikidata is another matter.
This may have been solved with https://gerrit.wikimedia.org/r/92298 - can someone confirm that it's still an issue?
moment.js does not support partial dates (it will parse them, set all missing fields to zero and then handle them as exact dates). I looked for partial date libraries but didn't find a decent one for either JS or PHP. As I said, I don't think this would be worth the effort.