forked from ryanmwangi/CalMerger
Fix: Update date format in merged calendar to be compatible with Nextcloud
This commit is contained in:
parent
3a37c3fd58
commit
f9ba53fefb
|
@ -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
|
||||||
`;
|
`;
|
||||||
|
|
Loading…
Reference in New Issue