Page MenuHomePhabricator

TimeParser should return correct precision when only month and year or year is given
Closed, ResolvedPublic

Description

Currently, when trying to parse something like "December 2012" and precision "day", the Time Parser returns "+0000000000000012-12-00T00:00:00Z" and precision "11" which is the wrong precision, because it indicates a day but instead should indicate a month. The correct return would be "10" (if the parser is smart) or at least it should fail to parse.


Version: unspecified
Severity: major
Whiteboard: u=dev c=backend p=8 s=2014-03-18

Details

Reference
bz62730

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 2:56 AM
bzimport set Reference to bz62730.
bzimport added a subscriber: Unknown Object (MLST).

It looks like this is in DataValues/Time

Change 119980 had a related patch set uploaded by Addshore:
Use DataValues/Time version ~0.5.0

https://gerrit.wikimedia.org/r/119980

Change 119980 merged by Addshore:
Use DataValues/Time version ~0.5.1

https://gerrit.wikimedia.org/r/119980