// This is because the accuracy of tdcron class appears to be 1 minute.
// Update last and next values in tt_cron.
$sql = "update tt_cron set last = $now, next = $next where id = ".$val['id'];
// This is because the accuracy of tdcron class appears to be 1 minute.
// Update last and next values in tt_cron.
$sql = "update tt_cron set last = $now, next = $next where id = ".$val['id'];