Page MenuHomePhabricator

ParserFunction #time: wrong day when combining next with a relative time
Open, MediumPublic

Description

Author: shadowtweaker

Description:
screenshot of the bug, made in ExpandTemplates at english wikipedia

{{#time:d.m.Y|05.04.2012 next thursday}} gives 12.04.2012, but {{#time:d.m.Y|05.04.2012 next thursday -1 day}} gives 04.04.2012 instead of 11.04.2012. Strangely this bug happens not if "year" or "month" is entered instead of "day", if the integer is positive, if "previous" is used instead of "next" or if an other week of the day is entered (as 05.04.2012 is a thursday too, only "next thursday" gives the bug, but for example "next friday" and "next wednesday" give correct results).

Bug was tested in Special:ExpandTemplates at the english wikipedia and at mediawiki.org.


Version: unspecified
Severity: normal
URL: https://en.wikipedia.org/wiki/User:MarkAHershberger/Bug35713

Attached:

Bug.png (800×1 px, 67 KB)

Details

Reference
bz35713