Skip to content

Scheduling infrastructure for absolutely everyone.

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

Alex van Andela8ea115a448d
diff --git a/lib/calendarClient.ts b/lib/calendarClient.ts
index f224383b477..dae3ccb0cbf 100644
--- a/lib/calendarClient.ts
+++ b/lib/calendarClient.ts
@@ -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);