A modern and easy to use dashboard. 80+ integrations. 20K+ icons built in. Authentication out of the box. No YAML, drag and drop configuration.
fix: preserve all-day event dates in Nextcloud calendar integration (#5523)
Matt Van Horn2e789795ed11
diff --git a/packages/integrations/src/nextcloud/nextcloud.integration.ts b/packages/integrations/src/nextcloud/nextcloud.integration.tsindex ff41d8300..f14bd11d7 100644--- a/packages/integrations/src/nextcloud/nextcloud.integration.ts+++ b/packages/integrations/src/nextcloud/nextcloud.integration.ts@@ -113,7 +113,9 @@ export class NextcloudIntegration extends Integration implements ICalendarIntegr// next actually returns undefined when there are no more occurrences// eslint-disable-next-line @typescript-eslint/no-unnecessary-conditionwhile ((next = iterator.next())) {- const nextStartDate = next.convertToZone(ICAL.Timezone.utcTimezone).toJSDate();+ const nextStartDate = next.isDate+ ? next.toJSDate()+ : next.convertToZone(ICAL.Timezone.utcTimezone).toJSDate();if (nextStartDate > end) break;const nextEndDate = new Date(nextStartDate.getTime() + durationMs);if (nextEndDate < start) continue;@@ -121,7 +123,11 @@ export class NextcloudIntegration extends Integration implements ICalendarIntegrstartDates.push(nextStartDate);}} else {- startDates = [veventObject.startDate.convertToZone(ICAL.Timezone.utcTimezone).toJSDate()];+ startDates = [+ veventObject.startDate.isDate+ ? veventObject.startDate.toJSDate()+ : veventObject.startDate.convertToZone(ICAL.Timezone.utcTimezone).toJSDate(),+ ];}return startDates.map((startDate) => {