X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/0e3c4d629800de449c5a1bb9da780993e5dc5277..aad5111d2e9f3329dc1002e897dd910a60946d6c:/cron.php diff --git a/cron.php b/cron.php index 345ddd3e..7be547d6 100644 --- a/cron.php +++ b/cron.php @@ -71,7 +71,8 @@ while ($val = $res->fetchRow()) { echo "Error while emailing report...
"; // Calculate next execution time. - $next = tdCron::getNextOccurrence($val['cron_spec'], $now); + $next = tdCron::getNextOccurrence($val['cron_spec'], $now + 60); // +60 sec is here to get us correct $next when $now is close to existing "next". + // 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'];