• Hi,
    ther are two small bugs in get_calendar(). The padding at the end of month dosn´t work correct.
    date(‘w’,…) returns 0-6 and $day gets incremented by the end of the loop, so it is for example 32 at the end of month.
    This line, 460
    $pad = 7 – date(‘w’, mktime(0, 0 , 0, $thismonth, $day, $thisyear));
    should look like this
    $pad = 6 – date(‘w’, mktime(0, 0 , 0, $thismonth, $day-1, $thisyear));

Viewing 2 replies - 1 through 2 (of 2 total)
  • Have you checked that this is a problem in a recent nightly build? I think this was already fixed.

    Thread Starter marco

    (@marco)

    I´m using WP1.0, but i browsed through the CVS. Threre are small changes, but one bug is still there. date() returns 6 for saturday, so $pad get´s 1, which is incorrect for january.
    But maybe I missed something, it´s late in Germany 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Calendar bug’ is closed to new replies.