Last modified: 2009-02-04 14:23:23 UTC
for version 1.15alpha (r46424) correct:{{#time:Y|1960}} gives 1960 bug:{{#time:Y|1959}} gives 2009
Expected in strtotime() http://uk3.php.net/manual/en/function.strtotime.php A four-digit number is interpreted as hours and minutes if possible, and otherwise as year. 1959 is a valid time, 1960 isn't. It just needs more data than a 4 digit number.
*** This bug has been marked as a duplicate of bug 11686 ***
Actually, it has nothing to do with bug 11686. Since it is functioning as documented at [[mw:Help:Extension:ParserFunctions]], I'm marking it "Invalid" instead. BTW, a workaround is to simply specify a (dummy) month and day along with the year, e.g. {{#time:Y|1959-02-02}} works as expected. Avoid "-01-01" unless your PHP default timezone is UTC, see bug 17080.
(In reply to comment #3) > Avoid "-01-01" unless your > PHP default timezone is UTC, see bug 17080. > Or just use -01-02, which is guaranteed to be in 1959 in any timezone.