Calendar class start of month weirdness and PHP < 5.1.0

A couple of calendar class users have noticed a problem with the first day of the month when using the class with versions of PHP earlier than 5.1.0. The issue was introduced with the last upgrade when I switched to date(“N”) for calculating the day that the first of the month falls on. date(“N”) was added in PHP at version 5.1.0 so earlier versions will have this problem. The quick remedy appears to be switching things back to use date(“w”) for this calculation.

Sorry for any inconvenience this may have caused people. I’ll have a fix in the next couple of days to address the issue fully.

Leave a Reply