X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=cron.php;h=7be547d6195113a984a526b91fcc11f042cbc1b2;hb=5532fe6cfc2125063ff8040cfa80e20089ac64b0;hp=345ddd3e87b1097425fc7e673b7986d2b8feb28f;hpb=0e3c4d629800de449c5a1bb9da780993e5dc5277;p=timetracker.git 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'];