Calendar bug
-
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)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Calendar bug’ is closed to new replies.