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

pull/87/head
Alex van Andel 2021-04-22 13:58:48 +00:00
parent 6a9632bb12
commit a8ea115a44
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ const MicrosoftOffice365Calendar = (credential) => {
})
.then(handleErrors)
.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) => {
console.log(err);