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 `;