diff --git a/calendar/lib.php b/calendar/lib.php index 662eeffedc8..9faf61f1ce7 100644 --- a/calendar/lib.php +++ b/calendar/lib.php @@ -528,8 +528,8 @@ function calendar_top_controls($type, $data) { case 'month': list($prevmonth, $prevyear) = calendar_sub_month($data['m'], $data['y']); list($nextmonth, $nextyear) = calendar_add_month($data['m'], $data['y']); - $prevdate = calendar_gmmktime_check($prevmonth, 1, $prevyear); - $nextdate = calendar_gmmktime_check($nextmonth, 1, $nextyear); + $prevdate = calendar_mktime_check($prevmonth, 1, $prevyear); + $nextdate = calendar_mktime_check($nextmonth, 1, $nextyear); $content .= "
<< '.strftime(get_string('strftimemonthyear'), $prevdate)." | \n"; $content .= ''.strftime(get_string('strftimemonthyear'), $time)." | \n";