mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-46517 calendar: adjust dates for DST
Change-Id: I269382031e4ffa714396f3d9ce2315a5c96d929c
This commit is contained in:
parent
32a69a7d7a
commit
91465b5095
@ -318,9 +318,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 .= '</tr><tr>';
|
||||
|
Loading…
x
Reference in New Issue
Block a user