[Wikidata-bugs] [Maniphest] [Commented On] T167788: Inconsistent parsing of entered date values in Wikidata - punctuation causes problems

2017-06-29 Thread thiemowmde
thiemowmde added a comment.
I just described how our code behaves right now, just as you did. This is not meant to be set in stone. The real world is complicated, which is why we created Wikidata in the first place.

We know the last PhpDateTimeParser in the chain is bad. But it's still better than nothing. Turning it off right now means you will get an error message when entering "9/7/2017". I don't think this makes the situation better.

I'm afraid there is no way any parser can ever be sure what "9/7/2017" means. Even if we use your IP address or location (something we should never do because of privacy reasons), or the interface language from your preferences, it might still either mean MM/DD/ or DD/MM/. The only thing we can (and want to) use is the date format from your personal preferences at https://www.wikidata.org/wiki/Special:Preferences#mw-prefsection-rendering. See https://gerrit.wikimedia.org/r/153211.TASK DETAILhttps://phabricator.wikimedia.org/T167788EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: thiemowmdeCc: daniel, Lydia_Pintscher, thiemowmde, Izno, Aklapper, agray, GoranSMilovanovic, QZanden, Wikidata-bugs, aude, Mbch331___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T167788: Inconsistent parsing of entered date values in Wikidata - punctuation causes problems

2017-06-28 Thread agray
agray added a comment.
This all sounds great until...

...because slashes are a hint at the American format MM/DD/, while all other punctuation characters typically hint at DD.MM..

...which sounds completely weird to me. In fact, I raised the possibility and dismissed it as obviously not the explanation idea when I first reported this on WD:PC - "It can't be that using slashes is unique to MDY notation - I've been writing DMY dates this way all my life." :-)

Before this I'd never heard of the idea that slashes are distinctively American - it's true that it's the punctuation Americans most commonly use, but so do a lot of other people. WP's list of common national date styles has about even numbers of dd/mm and dd.mm.

This last parser sounds like it's introducing ambiguity and inconsistency that really doesn't need to be there, and there's no reason to assume that users will expect this behaviour. Can we not just turn this bit off and leave the other parsers to do their work?TASK DETAILhttps://phabricator.wikimedia.org/T167788EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: agrayCc: daniel, Lydia_Pintscher, thiemowmde, Izno, Aklapper, agray, GoranSMilovanovic, QZanden, Wikidata-bugs, aude, Mbch331___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs