diff --git a/app/Classes/File/Send/Dynamic.php b/app/Classes/File/Send/Dynamic.php index e3e8a86..f807bdd 100644 --- a/app/Classes/File/Send/Dynamic.php +++ b/app/Classes/File/Send/Dynamic.php @@ -74,18 +74,27 @@ final class Dynamic extends Send $this->do->next_at = $next_at ->addDay(); + while ($this->do->next_at->isPast()) + $this->do->next_at->addDay(); + break; case 'WEEKLY': $this->do->next_at = $next_at ->addWeek(); + while ($this->do->next_at->isPast()) + $this->do->next_at->addWeek(); + break; case 'MONTHLY': $this->do->next_at = $next_at ->addMonth(); + while ($this->do->next_at->isPast()) + $this->do->next_at->addMonth(); + break; default: