When integrating with calendar providers like Google and Microsoft through the Nylas API, you may notice that all-day events (datespan) events add an additional day, a one day event will appear as two days. This is expected behaviour.
Google Calendar
When Google Calendar returns an all-day event, it includes the end date as the day after the event. This means an event scheduled for July 11th will have an end date of July 12th. Here is an example response from Google:
"start": {
"date": "2024-07-11"
},
"end": {
"date": "2024-07-12"
}
Microsoft Calendar
Below is an example response from Microsoft Graph:
"start":{ "dateTime":"2024-07-11T00:00:00.0000000", }, "end":{ "dateTime":"2024-07-12T00:00:00.0000000", }
Nylas response
Matches the provider response (Google example response) .
"when":{
"start_date":"2024-07-11",
"end_timezone":"2024-07-12",
"object":"datespan"
}
Updated
Comments
0 comments
Please sign in to leave a comment.