Skip to content

Commit

Permalink
Use ISO Year within WEEKLY recurrence handling (#256)
Browse files Browse the repository at this point in the history
Use ISO Year within WEEKLY recurrence handling
  • Loading branch information
u01jmg3 authored Jan 17, 2020
2 parents ec0773e + 6aae51e commit 9460e42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ICal/ICal.php
Original file line number Diff line number Diff line change
Expand Up @@ -1397,7 +1397,7 @@ function ($weekday) use ($initialDayOfWeek, $wkstTransition, $interval) {
foreach ($matchingDays as $day) {
$clonedDateTime = clone $frequencyRecurringDateTime;
$candidateDateTimes[] = $clonedDateTime->setISODate(
$frequencyRecurringDateTime->format('Y'),
$frequencyRecurringDateTime->format('o'),
$frequencyRecurringDateTime->format('W'),
$day
);
Expand Down

0 comments on commit 9460e42

Please sign in to comment.