Last modified: 2011-07-24 11:39:54 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T18838, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 16838 - CURRENTWEEK and CURRENTYEAR incoherent
CURRENTWEEK and CURRENTYEAR incoherent
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Low major with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-12-30 16:41 UTC by Daniel U. Thibault
Modified: 2011-07-24 11:39 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Daniel U. Thibault 2008-12-30 16:41:49 UTC
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.
Comment 1 Aaron Schulz 2008-12-30 18:03:53 UTC
Getting the same thing locally
Comment 2 Aaron Schulz 2008-12-30 18:20:28 UTC
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.
Comment 3 Aaron Schulz 2008-12-30 18:20:53 UTC
(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' )
Comment 4 Danny B. 2008-12-30 23:41:37 UTC
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}}.
Comment 5 Dan Collins 2011-07-15 04:47:04 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links