We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02707b3 commit c31adf3Copy full SHA for c31adf3
src/Models/Concerns/HandlesRecurrence.php
@@ -17,7 +17,7 @@ public function calculateNextRecurrenceEnd(Carbon|string $start = null): Carbon
17
$start = Carbon::parse($start);
18
}
19
20
- $recurrences = PeriodicityType::getDateDifference(from: now(), to: $start, unit: $this->periodicity_type);
+ $recurrences = PeriodicityType::getDateDifference(from: $start, to: now(), unit: $this->periodicity_type);
21
$expirationDate = $start->copy()->add($this->periodicity_type, $this->periodicity + $recurrences);
22
23
return $expirationDate;
0 commit comments