diff --git a/src/ninegate-1.0/src/Cadoles/CronBundle/Command/CronCommand.php b/src/ninegate-1.0/src/Cadoles/CronBundle/Command/CronCommand.php index 0164ed73..774b140b 100644 --- a/src/ninegate-1.0/src/Cadoles/CronBundle/Command/CronCommand.php +++ b/src/ninegate-1.0/src/Cadoles/CronBundle/Command/CronCommand.php @@ -92,7 +92,12 @@ class CronCommand extends ContainerAwareCommand // Date prochaine execution if($cron->getrepeatinterval()>=0) { - $next=new \DateTime(); + // 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); }