From 661e614310051e9b1a92191bd836c4856aa2713b Mon Sep 17 00:00:00 2001 From: Ryan Mwangi Date: Thu, 3 Oct 2024 15:05:12 +0300 Subject: [PATCH] add BEGIN:VEVENT and END:VEVENT for each event in merged calendar --- server.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server.js b/server.js index 083efa5..8d85381 100644 --- a/server.js +++ b/server.js @@ -137,10 +137,10 @@ async function updateMergedCalendar(){ VERSION:2.0 CALSCALE:GREGORIAN METHOD:PUBLISH -BEGIN:VEVENT `; mergedCal.forEach((event) => { - icalString += `DTSTART:${event.start} + icalString += `BEGIN:VEVENT +DTSTART:${event.start} DTEND:${event.end} SUMMARY:${event.summary} END:VEVENT