diff --git a/lib/Recur/RRuleIterator.php b/lib/Recur/RRuleIterator.php index 20f34ef42..ffcb22dc9 100644 --- a/lib/Recur/RRuleIterator.php +++ b/lib/Recur/RRuleIterator.php @@ -733,18 +733,6 @@ protected function parseRRule($rrule) { case 'UNTIL' : $this->until = DateTimeParser::parse($value, $this->startDate->getTimezone()); - - // In some cases events are generated with an UNTIL= - // parameter before the actual start of the event. - // - // Not sure why this is happening. We assume that the - // intention was that the event only recurs once. - // - // So we are modifying the parameter so our code doesn't - // break. - if ($this->until < $this->startDate) { - $this->until = $this->startDate; - } break; case 'INTERVAL' : diff --git a/tests/VObject/Recur/RRuleIteratorTest.php b/tests/VObject/Recur/RRuleIteratorTest.php index 4cbd9941f..6e1c22eb9 100644 --- a/tests/VObject/Recur/RRuleIteratorTest.php +++ b/tests/VObject/Recur/RRuleIteratorTest.php @@ -890,9 +890,7 @@ function testUntilBeforeDtStart() { $this->parse( 'FREQ=DAILY;UNTIL=20140101T000000Z', '2014-08-02 00:15:00', - [ - '2014-08-02 00:15:00', - ] + [] ); }