I have run into an interesting issue using PHP\'s date() function. Haven\'t had any luck locating a discussion of this on SO or using Google, but maybe someone
Darn, apparently I didn't re-read the documentation closely enough, the letter o was added in PHP 5.1.0:
From the documentation for date():
ISO-8601 year number. This has the same value as Y, except that if the ISO week number (W) belongs to the previous or next year, that year is used instead. (added in PHP 5.1.0)
So my code should have been date("o-\WW");