// create cron expression
$cronEx = CronExpression::factory('* * * * *');
// create last and next run time
$current_date = new DateTime('2011-09-27 10:10:54');
$next_run = $cronEx->getNextRunDate($current_date);
But when this gets executed, $next_run is '2011-09-27 10:10:00' which is wrong, it should actually be '2011-09-27 10:11:00'.
Hello, I use your code like this :
But when this gets executed, $next_run is '2011-09-27 10:10:00' which is wrong, it should actually be '2011-09-27 10:11:00'.
Thank you for this fine class