google-api-nodejs-client icon indicating copy to clipboard operation
google-api-nodejs-client copied to clipboard

CalendarEventsList API in some cases returns wrong time for cancelled events

Open Manyasha opened this issue 2 years ago • 0 comments

When a guest user is removed from a meeting by the owner, or the owner reschedules the recurring event to a different day, the cancellation event for the guest received through the API contains the wrong time in the past.

For example:

User A created an event and added User B to the participant list. After that User A removes User B from this event.

Using the Events:list API (https://developers.google.com/calendar/api/v3/reference/events/list) through the Node.js client library or directly in the Google APIs Explorer with params "showDeleted" = true and "singleEvents" = true, we get the following:

(Requests run against user B's calendar.)

  • immediately after the event has been created

{ kind: 'calendar#event', etag: '"3346892308754000"', id: '19odqf555q7g754pi4d4r06bhr', status: 'confirmed', htmlLink: 'https://www.google.com/calendar/event?eid=MTlvZHFmNTU1cTdnNzU0cGk0ZDRyMDZiaHIgbWFyaW5hLnRzeW1iYWxAd2lsZGl4LmNvbQ', created: '2023-01-11T14:09:13.000Z', updated: '2023-01-11T14:09:14.377Z', summary: '2023', creator: { email: <UserA email> }, organizer: { email: <UserA email>}, start: { dateTime: '2023-01-11T16:30:00+02:00', timeZone: 'Europe/Kiev' }, end: { dateTime: '2023-01-11T17:30:00+02:00', timeZone: 'Europe/Kiev' }, iCalUID: '[email protected]', sequence: 0, attendees: [ [Object], [Object] ], hangoutLink: 'link', conferenceData: { entryPoints: [Array], conferenceSolution: [Object], conferenceId: 'string' }, reminders: { useDefault: true }, eventType: 'default' }

  • after deleting the user B

{ kind: 'calendar#event', etag: '"3346892719552000"', id: '19odqf555q7g754pi4d4r06bhr', status: 'cancelled', htmlLink: 'https://www.google.com/calendar/event?eid=MTlvZHFmNTU1cTdnNzU0cGk0ZDRyMDZiaHIgbWFyaW5hLnRzeW1iYWxAd2lsZGl4LmNvbQ', updated: '2023-01-11T14:12:39.776Z', start: { dateTime: '2000-01-01T02:00:00+02:00', timeZone: 'UTC' }, end: { dateTime: '2000-01-02T02:00:00+02:00', timeZone: 'UTC' }, transparency: 'transparent', iCalUID: '[email protected]' }

Manyasha avatar Apr 10 '23 09:04 Manyasha