- finally fixed the offset-by-one-day bug

3-00
Dries Buytaert 2001-01-20 09:24:26 +00:00
parent 6732083394
commit 312c625cd7
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ class Calendar {
if ($sday == 0) $output .= " <TR>\n";
// Print one cell:
$date = mktime(24, 0, 0, $month, $nday, $year);
$date = mktime(23, 59, 59, $month, $nday, $year);
if ($nday == $day) $output .= " <TD ALIGN=\"center\"><SMALL><B>$nday</B></SMALL></TD>\n";
else if ($date > time()) $output .= " <TD ALIGN=\"center\"><SMALL>$nday</SMALL></TD>\n";
else $output .= " <TD ALIGN=\"center\"><SMALL><A HREF=\"index.php?date=$date\" STYLE=\"text-decoration: none;\">$nday</A></SMALL></TD>\n";