1
0
Fork 0

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) => { mergedCal.forEach((event) => {
icalString += `BEGIN:VEVENT icalString += `BEGIN:VEVENT
DTSTART:${event.start} DTSTART;VALUE=DATE:${event.start.toISOString().split('T')[0].replace(/-/g, '')}
DTEND:${event.end} DTEND;VALUE=DATE:${event.end.toISOString().split('T')[0].replace(/-/g, '')}
SUMMARY:${event.summary} SUMMARY:${event.summary}
END:VEVENT END:VEVENT
`; `;