From 72ce39de7c71ec80b8a975db2d0f55a5ebc91c11 Mon Sep 17 00:00:00 2001 From: Dan Poltawski Date: Tue, 23 Dec 2014 10:43:25 +0000 Subject: [PATCH] Revert "Merge branch 'MDL-48591_m27' of https://github.com/jrchamp/moodle into MOODLE_27_STABLE" This reverts commit 1d8e6ecebebd36f068b5d26a794806c3f7bc932e, reversing changes made to 6a2cd3d21dbff38e513d510b99eef01c7e73fd09. --- calendar/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calendar/lib.php b/calendar/lib.php index 8658afdb41c..39704f0fb79 100644 --- a/calendar/lib.php +++ b/calendar/lib.php @@ -249,7 +249,7 @@ function calendar_get_mini($courses, $groups, $users, $calmonth = false, $calyea // These are used for DB queries, so we want unixtime, so we need to use Gregorian dates. $display->tstart = make_timestamp($gy, $gm, $gd, $gh, $gmin, 0); - $display->tend = strtotime("+{$display->maxdays} days", $display->tstart) - 1; + $display->tend = $display->tstart + ($display->maxdays * DAYSECS) - 1; // Align the starting weekday to fall in our display range // This is simple, not foolproof. -- 2.11.4.GIT