Even though Office 365 is set to UTC, it does not respond with Z in the API response indicating UTC, this fixes that by adding the Z

This commit is contained in:
Alex van Andel committed 2021-04-22 13:58:48 +00:00
1 parent 6a9632bb12
commit a8ea115a44
1 file changed
+1 -1
+1 -1
View File
@@ -106,7 +106,7 @@ const MicrosoftOffice365Calendar = (credential) => {
}) })
.then(handleErrors) .then(handleErrors)
.then( responseBody => { .then( responseBody => {
return responseBody.value[0].scheduleItems.map( (evt) => ({ start: evt.start.dateTime, end: evt.end.dateTime })) return responseBody.value[0].scheduleItems.map( (evt) => ({ start: evt.start.dateTime + 'Z', end: evt.end.dateTime + 'Z' }))
}) })
).catch( (err) => { ).catch( (err) => {
console.log(err); console.log(err);