diff --git a/mod/scorm/lib.php b/mod/scorm/lib.php index fea080268fc70..f5e7c7d5dbe37 100755 --- a/mod/scorm/lib.php +++ b/mod/scorm/lib.php @@ -471,7 +471,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) {