Skip to content

fix: list calendars without an explicit time zone - #98

Open
nvtoan0201-swe wants to merge 1 commit into
CopilotKit:mainfrom
nvtoan0201-swe:fix/calendar-list-timezone
Open

nvtoan0201-swe wants to merge 1 commit into
CopilotKit:mainfrom
nvtoan0201-swe:fix/calendar-list-timezone

Conversation

@nvtoan0201-swe

@nvtoan0201-swe nvtoan0201-swe commented Sep 30, 2026 •

Copy link
Copy Markdown

What changed

Google documents CalendarListEntry.timeZone as optional, but the integration required it in two places:

  • listCalendars: one calendar without a zone made the whole calendarList read throw, which then failed /api/calendars and the workspace snapshot for the entire app.
  • reviewEvent: when neither the event nor its calendar carried a zone, update/delete reviews failed before they could be prepared.

Both now fall back to "UTC", with fixture tests for a zone-less calendar list entry and a zone-less event review.

Verification

  • pnpm exec tsx --test tests/google.test.ts — 27 pass, 0 fail (2 new)
  • pnpm lint
  • pnpm typecheck

Integration limits

Fixtures only; no live Google account was exercised.

AI assistance was used to prepare this change; I reviewed the code, tests and checks above.

@nvtoan0201-swe
nvtoan0201-swe force-pushed the fix/calendar-list-timezone branch from 9520654 to 47bbaf6 Compare September 30, 2026 04:47
Google marks CalendarListEntry.timeZone as optional. Requiring it made one zone-less calendar fail the whole listCalendars read, which also failed the workspace snapshot. Default the entry to UTC and keep the rest of the list readable. Add a fixture test for an entry with no timeZone.
@nvtoan0201-swe
nvtoan0201-swe force-pushed the fix/calendar-list-timezone branch from 47bbaf6 to 76af24a Compare September 30, 2026 04:50

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant