Page MenuHomePhabricator

In Wikibase 31 07 2009 can be parsed but 31/07/2009 can not
Closed, ResolvedPublic


When copying a date from a website in the format "31/07/2009" which is standard in the UK the date was not recognised.
Simply removing the slashes and replacing them with spaces allowed me to enter the date.
The date in the original format should also be allowed!

Event Timeline

Addshore raised the priority of this task from to Needs Triage.
Addshore updated the task description. (Show Details)
Addshore added subscribers: Addshore, Lydia_Pintscher.

Two possible solutions:

  • Simply try to add the slash to PhpDateTimeParser::getValueWithFixedSeparators.
  • Implement a new parser or a series of new parsers for cases that PHPs parser can't handle. For reference, this is what it can handle:

it seems to work for me - is this still valid?