diff --git a/mod/scorm/lib.php b/mod/scorm/lib.php index 88c7543edcf..e221c2db133 100755 --- a/mod/scorm/lib.php +++ b/mod/scorm/lib.php @@ -400,7 +400,7 @@ function scorm_cron () { } $timenow = time(); - $updatetime = usergetmidnight($timenow, $sitetimezone) + ($CFG->scorm_updatetimelast * 3600); + $updatetime = usergetmidnight($timenow, $sitetimezone); if ($CFG->scorm_updatetimelast < $updatetime and $timenow > $updatetime) {