matej_suchanek created this task. matej_suchanek added a project: Wikidata. Restricted Application added a subscriber: Aklapper.
TASK DESCRIPTION Steps to Reproduce: 1. Go to an item (eg. sandbox <https://www.wikidata.org/wiki/Q4115189?uselang=cs>) with Czech (cs) as the interface language. 2. Add a new property with time datatype (eg. P585 <https://www.wikidata.org/wiki/Property:P585>). 3. Write a month in Czech (see below) and a year (eg. 2019). Actual Results: - For some months, the preview will show the first day of the month: - Namely "březen" (3), "květen" (5), "červen" (6), "červenec" (7), "září" (9), "říjen" (10). - The rest is parsed correctly: "leden" (1), "únor" (2), "duben" (4), "srpen" (8), "listopad" (11), "prosinec" (12). - Possible explanation: All problematic months contain characters with caron <https://www.wikidata.org/wiki/Q26948>. It's possible that the parser doesn't handle special characters correctly. - It could be caused by `strcasecmp` which is used in YearMonthTimeParser <https://github.com/wmde/Time/blob/0ce1e1fc10fbf1da232f88235adb609c924f3e79/src/ValueParsers/YearMonthTimeParser.php#L101>. But I wasn't able to confirm this. - The same problem happens with all English months (still with the interface in Czech). F30380987: obrazek.png <https://phabricator.wikimedia.org/F30380987> F30380993: obrazek.png <https://phabricator.wikimedia.org/F30380993> F30381005: obrazek.png <https://phabricator.wikimedia.org/F30381005> Expected Results: - The value is always parsed to the "month" precision. TASK DETAIL https://phabricator.wikimedia.org/T233105 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: matej_suchanek Cc: Aklapper, matej_suchanek, darthmon_wmde, DannyS712, Nandana, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Wikidata-bugs, aude, Mbch331
_______________________________________________ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs