Revert "Merge branch 'MDL-48591_m28' of https://github.com/jrchamp/moodle into MOODLE_28_STABLE"

This reverts commit a6af290ea4, reversing
changes made to 267ac74ef3.
This commit is contained in:
Dan Poltawski
2014-12-23 10:43:37 +00:00
parent 7e911af220
commit 008e28478d
+1 -1
View File
@@ -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.