var action ={'start': {
'dateTime': startTime.toISOString()
},
'end': {
'dateTime': ReturnDateFormatted.toISOString()
},
'sendNotifications': 'true', // email the invite
};
Calendar.Events.patch(action, defaultCalendarId, arrayEventId[0],{sendUpdates: "all"});
Where both CalendarId and EventId are all set up correctly, but the issue lies on the time. The console output for both start and end time is:
startTime: 2022-12-30T03:00:00.000Z
endTime: 2023-02-02T00:00:00.000Z
Which is correctly formatted, but the API returns a error, as previously mentioned. Does anyone if there's an ongoing issue with Google Calendar's API, or is my code gone somehow kapputt out of nowhere?