From a8e16d4f7048dd78bfaf4f9752ee3f8c45015ec6 Mon Sep 17 00:00:00 2001
From: Dries Buytaert <dries@buytaert.net>
Date: Mon, 17 Jul 2000 15:43:09 +0000
Subject: [PATCH] * Fixes the calendar bug reported by UnConeD. * The rest of
 my stuff (administration stuff) isn't ready to be   commited yet ... :I

---
 calendar.class.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/calendar.class.php b/calendar.class.php
index f550f73939c9..a4a73e045bee 100644
--- a/calendar.class.php
+++ b/calendar.class.php
@@ -47,7 +47,7 @@ function display() {
       if ($sday == 0) $output .=  " <TR>\n";
     
       ### Print one cell:
-      $date = mktime(0, 0, 0, $month, $nday, $year);
+      $date = mktime(24, 0, 0, $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=\"$PHP_SELF?date=$date\" STYLE=\"text-decoration: none;\">$nday</A></SMALL></TD>\n";
-- 
GitLab