From caf2578cb1304f6773946d09d3dcc43fb287ec81 Mon Sep 17 00:00:00 2001 From: Christopher Szu Date: Thu, 28 Dec 2023 18:01:08 +0800 Subject: [PATCH] fix diff --- lib/Recur/RRuleIterator.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/lib/Recur/RRuleIterator.php b/lib/Recur/RRuleIterator.php index a07c42484..0b3140bb0 100644 --- a/lib/Recur/RRuleIterator.php +++ b/lib/Recur/RRuleIterator.php @@ -26,7 +26,7 @@ class RRuleIterator implements \Iterator * we want to iterate. The value is a unix timestamp and currently * corresponds to the datetime 9999-12-31 11:59:59 UTC. */ - public const int dateUpperLimit = 253402300799; + public const dateUpperLimit = 253402300799; /** * Creates the Iterator. @@ -823,14 +823,6 @@ protected function nextYearly($amount = 1): void (int) $currentMonth, (int) $currentDayOfMonth ); - - // To prevent running this forever (better: until we hit the max date of DateTimeImmutable) we simply - // stop at 9999-12-31. Looks like the year 10000 problem is not solved in php .... - if ($this->currentDate->getTimestamp() > self::dateUpperLimit) { - $this->currentDate = null; - - return; - } } // If we made it here, it means we got a valid occurrence