summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/calendar.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/calendar.module b/modules/calendar.module
index a2e66f3a5..e60e47dc2 100644
--- a/modules/calendar.module
+++ b/modules/calendar.module
@@ -30,7 +30,7 @@ class Calendar {
// Calculate previous and next months dates and check for shorter months (28/30 days)
$prevmonth = mktime(23, 59, 59, $month - 1, 1, $year);
$prev = mktime(23, 59, 59, $month - 1, min(date("t", $prevmonth), $day), $year);
- $nextmonth = mktime(23, 59, 59, $month + 1, 31, $year);
+ $nextmonth = mktime(23, 59, 59, $month + 1, 1, $year);
$next = mktime(23, 59, 59, $month + 1, min(date("t", $nextmonth), $day), $year);
// Generate calendar header: