You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$msg = ts('Last cron run at %1', array(1 => CRM_Utils_Date::customFormat(date('c', $lastCron))));
207
+
if ($lastCron > gmdate('U') - 3600) {
208
+
$messages[] = newCRM_Utils_Check_Message(
209
+
'checkLastCron',
210
+
$msg,
211
+
ts('Cron Running OK'),
212
+
\Psr\Log\LogLevel::INFO
213
+
);
214
+
}
215
+
elseif ($lastCron > gmdate('U') - 86400) {
216
+
$message = newCRM_Utils_Check_Message(
217
+
'checkLastCron',
218
+
$msg,
219
+
ts('Cron Not Running'),
220
+
\Psr\Log\LogLevel::WARNING
221
+
);
222
+
$message->addHelp(ts('Learn more in the <a href="%1">Administrator\'s Guide supplement</a>', array(1 => 'http://book.civicrm.org/user/advanced-configuration/email-system-configuration/')));
223
+
$messages[] = $message;
224
+
}
225
+
elseif ($lastCron <= gmdate('U') - 86400) {
226
+
$message = newCRM_Utils_Check_Message(
227
+
'checkLastCron',
228
+
$msg,
229
+
ts('Cron Not Running'),
230
+
\Psr\Log\LogLevel::ERROR
231
+
);
232
+
$message->addHelp(ts('Learn more in the <a href="%1">Administrator\'s Guide supplement</a>', array(1 => 'http://book.civicrm.org/user/advanced-configuration/email-system-configuration/')));
0 commit comments