This commit is contained in:
Prospress Inc
2016-09-08 09:19:32 +02:00
committed by I
parent 084aa2976e
commit 3c13d0a95f
26 changed files with 776 additions and 483 deletions

View File

@@ -20,7 +20,7 @@ class ActionScheduler_CronSchedule implements ActionScheduler_Schedule {
* @return DateTime|null
*/
public function next( DateTime $after = NULL ) {
$after = empty($after) ? clone($this->start) : clone($after);
$after = empty($after) ? clone $this->start : clone $after;
return $this->cron->getNextRunDate($after, 0, TRUE);
}
@@ -38,7 +38,7 @@ class ActionScheduler_CronSchedule implements ActionScheduler_Schedule {
}
public function __wakeup() {
$this->start = new DateTime('@'.$this->start_timestamp);
$this->start = as_get_datetime_object($this->start_timestamp);
}
}