Do not parse dates
Changes made:
before :
DTSTART;VALUE=DATE:${event.start.toISOString().split('T')[0].replace(/-/g, '')} DTEND;VALUE=DATE:${event.end.toISOString().split('T')[0].replace(/-/g, '')}
After:…