Fix for php's incorrect guess of what the last day of a particular month is