From 40db42bb14c3d844c5d376337684dda1c068e1f3 Mon Sep 17 00:00:00 2001 From: Melissa Autumn Date: Fri, 10 May 2024 14:51:54 -0700 Subject: [PATCH] Fix all day events bleeding over to following day: * Google defines all day as "Midnight" to "Midnight + 1 day" * Subtract 1 minute from the end time. --- frontend/src/components/CalendarQalendar.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/CalendarQalendar.vue b/frontend/src/components/CalendarQalendar.vue index 33a4e60a7..088d78337 100644 --- a/frontend/src/components/CalendarQalendar.vue +++ b/frontend/src/components/CalendarQalendar.vue @@ -187,7 +187,7 @@ const calendarEvents = computed(() => { ? start.format(dateFormatStrings.qalendarFullDay) : start.format(dateFormatStrings.qalendar), end: event.all_day - ? end.format(dateFormatStrings.qalendarFullDay) + ? end.subtract(1, 'minute').format(dateFormatStrings.qalendarFullDay) : end.format(dateFormatStrings.qalendar), }, description: event.description,