Skip to content

Commit

Permalink
Fix RRuleIterator
Browse files Browse the repository at this point in the history
  • Loading branch information
giuseppe-arcuti committed Jun 28, 2024
1 parent a79bc13 commit c450b92
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/Recur/RRuleIterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -709,8 +709,8 @@ protected function nextMonthly($amount = 1): void
$this->currentDate = $this->currentDate->setDate(
(int) $this->currentDate->format('Y'),
(int) $this->currentDate->format('n'),
(int) $occurrence
)->modify($this->startTime());
$occurrence[0],
)->setTime($occurrence[1], $occurrence[2], $occurrence[3]);
}

/**
Expand Down Expand Up @@ -905,8 +905,8 @@ protected function nextYearly($amount = 1): void
$this->currentDate = $this->currentDate->setDate(
(int) $currentYear,
(int) $currentMonth,
(int) $occurrence
)->modify($this->startTime());
$occurrence[0],
)->setTime($occurrence[1], $occurrence[2], $occurrence[3]);

return;
} else {
Expand Down

0 comments on commit c450b92

Please sign in to comment.