Page MenuHomePhabricator

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

Description

Author: krabina

Description:
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

Details

Reference
bz56547

Event Timeline

bzimport raised the priority of this task from to Low.
bzimport set Reference to bz56547.
bzimport added a subscriber: Unknown Object (MLST).
bzimport created this task.Nov 4 2013, 8:16 AM

Bernhard: Could you imagine being a mentor for this task in Google Code-in 2014?
See https://lists.wikimedia.org/pipermail/wikitech-l/2014-October/079264.html and https://www.mediawiki.org/wiki/Google_Code-in_2014 for more information.

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