Skip to content

Commit

Permalink
Fix all day events bleeding over to following day:
Browse files Browse the repository at this point in the history
* Google defines all day as "Midnight" to "Midnight + 1 day"
* Subtract 1 minute from the end time.
  • Loading branch information
MelissaAutumn committed May 10, 2024
1 parent 03993e7 commit 40db42b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/CalendarQalendar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 40db42b

Please sign in to comment.