diff --git a/course/format/weeks/lib.php b/course/format/weeks/lib.php index fb3b0ee1a0604..d31128b9add62 100644 --- a/course/format/weeks/lib.php +++ b/course/format/weeks/lib.php @@ -64,7 +64,7 @@ public function get_section_name($section) { // We subtract 24 hours for display purposes. $dates->end = ($dates->end - 86400); - $dateformat = ' '.get_string('strftimedateshort'); + $dateformat = get_string('strftimedateshort'); $weekday = userdate($dates->start, $dateformat); $endweekday = userdate($dates->end, $dateformat); return $weekday.' - '.$endweekday;