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 e6a9ff4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 548 deletions.
16 changes: 8 additions & 8 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 @@ -868,10 +868,10 @@ protected function nextYearly($amount = 1): void
continue;
}
if ($occurrence[3] > $currentSecondOfMonth) {
break 2;
}
}
}
break 2;
}
}
}

// If we made it here, it means we need to advance to
// the next month or year.
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
Loading

0 comments on commit e6a9ff4

Please sign in to comment.