From 72bbb091a4b5b7eaeb5aedca2285066036065db6 Mon Sep 17 00:00:00 2001 From: Tim Hunt Date: Thu, 29 Sep 2011 09:06:11 +0100 Subject: [PATCH] MDL-29570 Quiz editing page displays the wrong time in the status line sometimes. --- mod/quiz/editlib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/quiz/editlib.php b/mod/quiz/editlib.php index 4a944da03f0..6b5ddf9f74a 100644 --- a/mod/quiz/editlib.php +++ b/mod/quiz/editlib.php @@ -1272,7 +1272,7 @@ function quiz_print_status_bar($quiz) { // Brief summary on the page. if ($timenow < $quiz->timeopen) { $currentstatus = get_string('quizisclosedwillopen', 'quiz', - userdate($quiz->timeclose, get_string('strftimedatetimeshort', 'langconfig'))); + userdate($quiz->timeopen, get_string('strftimedatetimeshort', 'langconfig'))); } else if ($quiz->timeclose && $timenow <= $quiz->timeclose) { $currentstatus = get_string('quizisopenwillclose', 'quiz', userdate($quiz->timeclose, get_string('strftimedatetimeshort', 'langconfig')));