Fix: Update date format in merged calendar to be compatible with Nextcloud

This commit is contained in:
Ryan Mwangi 2024-10-10 15:42:38 +03:00
parent 3a37c3fd58
commit f9ba53fefb
1 changed files with 2 additions and 2 deletions

View File

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