MDL-69253 mod_quiz: Fix timecreated is 0 when creating a quiz activity

This commit is contained in:
Josh Ebarvia
2020-08-04 14:50:57 +01:00
committed by Tim Hunt
parent 95c4f624c8
commit 777c810671
+1 -1
View File
@@ -84,7 +84,7 @@ function quiz_add_instance($quiz) {
$cmid = $quiz->coursemodule;
// Process the options from the form.
$quiz->created = time();
$quiz->timecreated = time();
$result = quiz_process_options($quiz);
if ($result && is_string($result)) {
return $result;