diff --git a/lib/Recur/RRuleIterator.php b/lib/Recur/RRuleIterator.php index e2d1bda5..b4f395e1 100644 --- a/lib/Recur/RRuleIterator.php +++ b/lib/Recur/RRuleIterator.php @@ -710,7 +710,7 @@ protected function nextMonthly($amount = 1): void (int) $this->currentDate->format('Y'), (int) $this->currentDate->format('n'), $occurrence[0] - )->setTime($occurrence[1], $occurrence[2], $occurrence[3]); + )->modify($this->startTime()); } /** @@ -906,7 +906,7 @@ protected function nextYearly($amount = 1): void (int) $currentYear, (int) $currentMonth, (int) $occurrence[0] - )->setTime($occurrence[1], $occurrence[2], $occurrence[3]); + )->modify($this->startTime()); return; } else {