summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-01-20 09:24:26 +0000
committerDries Buytaert <dries@buytaert.net>2001-01-20 09:24:26 +0000
commit312c625cd77b06ba97d7e768758959f30eee7aec (patch)
tree54994f9d6fa295f17a4448c0c21af08d71b2b595 /modules
parent67320833940a6aee8c5ab54a8cb456dbd8c37bbb (diff)
downloadbrdo-312c625cd77b06ba97d7e768758959f30eee7aec.tar.gz
brdo-312c625cd77b06ba97d7e768758959f30eee7aec.tar.bz2
- finally fixed the offset-by-one-day bug
Diffstat (limited to 'modules')
-rw-r--r--modules/calendar.class2
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";