gestion tache cron journalière
This commit is contained in:
parent
8fae9aecd5
commit
f2b9c070a6
|
@ -92,7 +92,12 @@ class CronCommand extends ContainerAwareCommand
|
|||
|
||||
// Date prochaine execution
|
||||
if($cron->getrepeatinterval()>=0) {
|
||||
// Si interval par jour
|
||||
if(fmod($cron->getRepeatinterval(),86400)==0)
|
||||
$next=clone $cron->getNextexecdate();
|
||||
else
|
||||
$next=new \DateTime();
|
||||
|
||||
$next->add(new \DateInterval('PT'.$cron->getRepeatinterval().'S'));
|
||||
$cron->setNextexecdate($next);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue