From 6c78c8a5b1618272d44f0def7cf66cce5cdb5814 Mon Sep 17 00:00:00 2001 From: Melissa Autumn Date: Tue, 23 Jan 2024 13:30:43 -0800 Subject: [PATCH] Do convert datetimes to strings on event creation for google calendar... --- backend/src/appointment/controller/calendar.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/appointment/controller/calendar.py b/backend/src/appointment/controller/calendar.py index 58f983bd8..2cc7a226a 100644 --- a/backend/src/appointment/controller/calendar.py +++ b/backend/src/appointment/controller/calendar.py @@ -128,8 +128,8 @@ def create_event( "summary": event.title, "location": event.location.name, "description": "\n".join(description), - "start": {"dateTime": event.start}, - "end": {"dateTime": event.end}, + "start": {"dateTime": event.start.isoformat()}, + "end": {"dateTime": event.end.isoformat()}, "attendees": [ {"displayName": organizer.name, "email": organizer.email}, {"displayName": attendee.name, "email": attendee.email},