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
parent
6a9632bb12
commit
a8ea115a44
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue