From 063f46983b17d02493b2eb62d8d1adb0b1370359 Mon Sep 17 00:00:00 2001 From: Corey Wallis Date: Fri, 17 Oct 2014 14:28:49 +1030 Subject: [PATCH] Proposed fix for MDL-47723 Change-Id: I269382031e4ffa714396f3d9ce2315a5c96d929c --- calendar/lib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/calendar/lib.php b/calendar/lib.php index 76aba45..a789ab3 100644 --- a/calendar/lib.php +++ b/calendar/lib.php @@ -322,9 +322,9 @@ function calendar_get_mini($courses, $groups, $users, $calmonth = false, $calyea } // Now display all the calendar - $daytime = $display->tstart - DAYSECS; + $daytime = strtotime('-1 day', $display->tstart); for($day = 1; $day <= $display->maxdays; ++$day, ++$dayweek) { - $daytime += DAYSECS; + $daytime = strtotime('+1 day', $daytime); if($dayweek > $display->maxwday) { // We need to change week (table row) $content .= ''; -- 2.1.2