Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Audit/CronLast.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ public function audit(Sandbox $sandbox) {
return FALSE;
}

$sandbox->setParameter('cron_last', date('l jS \of F Y h:i:s A', $last));
$sandbox->setParameter('cron_last', date('l jS \of F Y h:i:s A', $last['system.cron_last']));

$time_diff = time() - $last;
$time_diff = time() - $last['system.cron_last'];
// Fail if cron hasn't run in the last 24 hours.
if ($time_diff > 86400) {
return FALSE;
Expand Down