From 312c625cd77b06ba97d7e768758959f30eee7aec Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 20 Jan 2001 09:24:26 +0000 Subject: [PATCH] - finally fixed the offset-by-one-day bug --- modules/calendar.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/calendar.class b/modules/calendar.class index 1bd8b795e1b..16498c6bb0a 100644 --- a/modules/calendar.class +++ b/modules/calendar.class @@ -47,7 +47,7 @@ class Calendar { if ($sday == 0) $output .= " \n"; // Print one cell: - $date = mktime(24, 0, 0, $month, $nday, $year); + $date = mktime(23, 59, 59, $month, $nday, $year); if ($nday == $day) $output .= " $nday\n"; else if ($date > time()) $output .= " $nday\n"; else $output .= " $nday\n";