Page MenuHomePhabricator

Parser function {{#time}} yielding incorrect month
Closed, ResolvedPublic

Description

Author: mpdelbuono

Description:
Presently on Wikipedia parser function {{#time}} is yielding incorrect results in certain circumstances. I have created a minimal reproduction with the following code:

{{#time:F|February}}

This results in "March" currently.

I suspect this might be related to the exact time this is showing up (the end of the year) and an incorrect calculation, because nobody has noticed this until now.


Version: unspecified
Severity: normal

Details

Reference
bz59137

Event Timeline

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

This is always happen between 29 and 31 of a month for February and for other months on the 31, because setting the 30 of a month to February results in the 30 of February which is the 2 of March

small test case:
{{#time:d F|February}}

gives:
02 March

  • This bug has been marked as a duplicate of bug 50477 ***