From: defacer Date: Tue, 11 May 2004 10:36:35 +0000 (+0000) Subject: Fix for bug 1365 (supplementary): X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=f7656746120632e62c005127a8fdb187f4cd9487;p=moodle.git Fix for bug 1365 (supplementary): Here's the other half of the fix. --- diff --git a/calendar/lib.php b/calendar/lib.php index 662eeffedc..9faf61f1ce 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 .= "\n"; $content .= '\n"; $content .= '\n";
<< '.strftime(get_string('strftimemonthyear'), $prevdate)."'.strftime(get_string('strftimemonthyear'), $time)."