Page MenuHomePhabricator

#time: should not "guess" incomplete dates
Open, LowPublic


Author: krabina

Dealing with incomplete dates, the function "guesses" the rest of the date, which it should not do:

{{#time:j|April 2013}} returns the same result as {{#time:j|1 April}}. Both are 1 but in case of April 2013 it is an assumption. Depending what users are doing with the result things could take a wrong turn on there wiki's. The desired result should be something that can not be a day, like 0 so users can "catch" it.

As the behaviour might be dealt with in several wikis, I suggest to include a settings parameter, where users can swith the guessing on or off. So users who need the guessing can still activate it (or on the other hand users who need a correct handling of incomplete dates can deactivate it).

Version: unspecified
Severity: enhancement
Whiteboard: gci2014



Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 2:35 AM
bzimport added a project: ParserFunctions.
bzimport set Reference to bz56547.
bzimport added a subscriber: Unknown Object (MLST).

Bernhard: Could you imagine being a mentor for this task in Google Code-in 2014?
See and for more information.

Restricted Application added a subscriber: Liuxinyu970226. · View Herald TranscriptMay 18 2019, 2:11 PM