From f9ba53fefb9292c2dc14670efc09ec8f27d5368e Mon Sep 17 00:00:00 2001 From: Ryan Mwangi Date: Thu, 10 Oct 2024 15:42:38 +0300 Subject: [PATCH] Fix: Update date format in merged calendar to be compatible with Nextcloud --- server.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server.js b/server.js index 45ca2d3..2b1cdb1 100644 --- a/server.js +++ b/server.js @@ -73,8 +73,8 @@ METHOD:PUBLISH `; mergedCal.forEach((event) => { icalString += `BEGIN:VEVENT -DTSTART:${event.start} -DTEND:${event.end} +DTSTART;VALUE=DATE:${event.start.toISOString().split('T')[0].replace(/-/g, '')} +DTEND;VALUE=DATE:${event.end.toISOString().split('T')[0].replace(/-/g, '')} SUMMARY:${event.summary} END:VEVENT `;