Skip to content

Commit

Permalink
MDL-29570 Quiz editing page displays the wrong time in the status lin…
Browse files Browse the repository at this point in the history
…e sometimes.
  • Loading branch information
timhunt committed Sep 29, 2011
1 parent 3973662 commit 8258ddf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/quiz/editlib.php
Expand Up @@ -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')));
Expand Down

0 comments on commit 8258ddf

Please sign in to comment.