SCORM MDL-22168 fix accidental revert - set start time of SCO correctly
[moodle.git] / mod / scorm / loaddatamodel.php
index 6e9173a..73ebd04 100644 (file)
@@ -86,6 +86,8 @@
     } else {
         include($CFG->dirroot.'/mod/scorm/datamodels/scorm_12.js.php');
     }
+    // set the start time of this SCO
+    scorm_insert_track($USER->id,$scorm->id,$scoid,$attempt,'x.start.time',time());
 ?>
 
 var errorCode = "0";