From e61156ef58a91b851c63e6cbe2716d099d2d00f3 Mon Sep 17 00:00:00 2001 From: Antoine Nguyen Date: Tue, 2 Dec 2025 13:54:04 +0100 Subject: [PATCH] Send UTC datetimes when creating/updating events in Calendar --- frontend/src/components/calendars/EventForm.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/src/components/calendars/EventForm.vue b/frontend/src/components/calendars/EventForm.vue index 91bf3a1f4..b38972452 100644 --- a/frontend/src/components/calendars/EventForm.vue +++ b/frontend/src/components/calendars/EventForm.vue @@ -177,6 +177,10 @@ async function saveEvent() { working.value = true try { var data = JSON.parse(JSON.stringify(form.value)) + const fromDate = new Date(data.start) + data.start = fromDate.toISOString() + const toDate = new Date(data.end) + data.end = toDate.toISOString() if (!props.event) { await api.createUserEvent(form.value.calendar, data) busStore.displayNotification({ msg: $gettext('Event added') })