Skip to content

[stable28] fix(caldav): explicitly check from component types - #62898

Closed
backportbot[bot] wants to merge 1 commit into
stable28from
backport/48131/stable28
Closed

[stable28] fix(caldav): explicitly check from component types#62898
backportbot[bot] wants to merge 1 commit into
stable28from
backport/48131/stable28

Conversation

@backportbot

@backportbot backportbot Bot commented Aug 4, 2026

Copy link
Copy Markdown

Backport of PR #48131

Signed-off-by: SebastianKrupinski <krupinskis05@gmail.com>
// RRULE can be infinate or limited by a UNTIL or COUNT
if ($component->RRULE) {
try {
$rule = new EventReaderRRule($component->RRULE->getValue(), $startDate);
} elseif ($component->DUE instanceof \Sabre\VObject\Property\ICalendar\DateTime) {
// VTODO component types
$endDate = $component->DUE->getDateTime();
} elseif ($component->name === 'VEVENT' && !$component->DTSTART->hasTime()) {
} elseif ($component->DUE instanceof \Sabre\VObject\Property\ICalendar\DateTime) {
// VTODO component types
$endDate = $component->DUE->getDateTime();
} elseif ($component->name === 'VEVENT' && !$component->DTSTART->hasTime()) {
}
// convert dates to timestamp and prevent negative values
$derived['firstOccurence'] = $startDate ? max(0, $startDate->getTimestamp()) : 0;
$derived['lastOccurence'] = $endDate ? max(0, $endDate->getTimestamp()) : 0;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews bug feature: caldav Related to CalDAV internals

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants