J
jacovkss2
Guest
The o in the date format represents (and I quote the online documentation):
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)
If you use Y instead, you get the desired result.
Strange, using the Y is much more intuitive; how did you get to using 'o' without a good reason / knowing what you were doing? No, I'm not being sarcastic here! It just seems strange, seeing that you already narrowed it down to the date function call...
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)
If you use Y instead, you get the desired result.
Strange, using the Y is much more intuitive; how did you get to using 'o' without a good reason / knowing what you were doing? No, I'm not being sarcastic here! It just seems strange, seeing that you already narrowed it down to the date function call...