Page MenuHomePhabricator

CURRENTWEEK and CURRENTYEAR incoherent
Closed, ResolvedPublic

Description

Author: D.U.Thibault

Description:
On 30 December 2008, the combination CURRENTWEEK, CURRENTYEAR returns 1 and 2008. Either 1/2009 or 53/2008 would make sense, but 1/2008 does not.


Version: unspecified
Severity: major

Details

Reference
bz16838

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 10:26 PM
bzimport set Reference to bz16838.
bzimport added a subscriber: Unknown Object (MLST).

Getting the same thing locally

http://bugs.php.net/bug.php?id=33957

Maybe that should be re-opened.

Even gmdate( 'W', $ts ) is giving me the same bad week.

(In reply to comment #2)

http://bugs.php.net/bug.php?id=33957

Maybe that should be re-opened.

Even gmdate( 'W', $ts ) is giving me the same bad week.

I meant gmdate( 'W' )

Partialy fixed in r45208 and r45209 according to http://www.php.net/manual/en/function.date.php

Use {{#time:o/W}} combination instead of {{#time:Y/W}} or {{CURRENTYEAR}}/{{CURRENTWEEK}}.

EN.WP.ST47 wrote:

Closing fixed per Danny B. Everything does what it claims to, there are just a few definitions of 'year', and we make them both available.