thiemowmde closed this task as "Resolved".
thiemowmde claimed this task.
thiemowmde added a comment.

This is indeed a duplicate of T167788, as well as closely related to other existing tickets.

This tasks description is a little misleading. It's not always "the american format MM-DD-YYYY" that is expected. This depends a lot on the date you are trying to input, and on the separator character you are using.

All this works as expected:
https://www.wikidata.org/w/api.php?action="">
https://www.wikidata.org/w/api.php?action="">
https://www.wikidata.org/w/api.php?action="">

The confusion only happens if you use slashes, and the day is in the range from 1 to 12 and can be confused with the month. The parser can not do anything but assume something, and assumes the MM/DD/YYYY format.
https://www.wikidata.org/w/api.php?action="">

As already explained in T167788 this can not really be fixed by considering the users language, IP address, or geo location. The language might have been set to "en", but the user might still assume "DD/MM/YYYY". Or vice versa.

I do have a few ideas how to improve the situation, including parsing the users preferred date format, trying to understand if it shows the day or the month first, and providing this as an additional hint to the parser chain we are using.


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

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

To: thiemowmde
Cc: Izno, thiemowmde, daniel, Aklapper, Lydia_Pintscher, Lea_Lacroix_WMDE, PokestarFan, GoranSMilovanovic, QZanden, Wikidata-bugs, aude, Mbch331
_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to