When using default view date argument for the first week of the year wrong year will be substituted. I.e. for the first week of 2010 module will use 2010-W53, while it should be 2009-W53. In order to fix it it is nessesary to change php date format pattern for week view from Y-/WW to o-/WW.
Patch attached

CommentFileSizeAuthor
#1 1stweek_2.patch834 bytesNickSI
1stweek.patch977 bytesNickSI

Comments

NickSI’s picture

StatusFileSize
new834 bytes

This patch corrupts calendar view. Here is another one. Different approach - special processing for the first week added to view argument handler.

chrisfromredfin’s picture

Wasn't quite sure if what I'm seeing had anything to do with your patch or not - your patch did not solve my issue for today. I filed a new one in calendar since it seems like I'm actually getting the correct argument (with default code and in your patch's case I'm not hitting the right branch anyway since today is W1) so I filed a new issue: http://drupal.org/node/673924

I think this is intended to fix the 2009-W53 display, but not the 2010-W01, yes?

arlinsandbulte’s picture

Status: Active » Closed (duplicate)

Sounds like a duplicate of this:
#641344: Add option to use ISO 8601 week numbers