Lokal_Profil added a comment.

I meant illegal as in not following  ISO 8601. Upon a closer reading I however 
see that it says "//timestamp in a format resembling ISO 8601//" so I guess 
illegal is the wrong choice of words.

The difference between storing `+2015-06-15T00:00:00Z`, 
`+2015-01-01T00:00:00Z`, `+2015-00-00T00:00:00Z` is that the third one makes 
only slightly more sense than `+2015-99-99T00:00:00Z` which is disallowed.

If however "2015" (with no month and no day) should always be stored as 
2015-00-00T00:00:00Z then I'll happily abide and adapt to that. It should then 
just be made clear so that downstream usage (most notably pywikibot 
<https://github.com/wikimedia/pywikibot-core/blob/master/pywikibot/__init__.py#L328>
 follows the same convention).

In general I would say storing `+2015-06-15T00:00:00Z` with precision `1 year` 
is also problematic since (in the frontend) saving this then changing the 
precision to `1 month` doesn't work. Thus to the frontend user the `06-15` bit 
is unrecoverable and largely undetectable. In fact if I edit the value in the 
frontend and again set the precision to "year" it will simply delete the month, 
day information (example 
<https://www.wikidata.org/w/index.php?title=Q4115189&type=revision&diff=245576229&oldid=245576101>).
 But that is a different issue from the current one.


TASK DETAIL
  https://phabricator.wikimedia.org/T107870

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Lokal_Profil
Cc: Magnus, Ricordisamoa, thiemowmde, hoo, Lokal_Profil, Aklapper, 
Wikidata-bugs, aude, Malyacko



_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to