diff options
-rw-r--r-- | modules/calendar.class | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/calendar.class b/modules/calendar.class index 1bd8b795e..16498c6bb 100644 --- a/modules/calendar.class +++ b/modules/calendar.class @@ -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"; |