From 8f8eef178414c2f1a57019a12ad669415b55cb27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Gr=C3=B6ger?= Date: Fri, 19 Nov 2021 22:49:03 +0100 Subject: [PATCH] [fix] load events from time with hour 0 --- src/components/overview/AgendaView.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/overview/AgendaView.vue b/src/components/overview/AgendaView.vue index 7fc9fe2..8b9b0f2 100644 --- a/src/components/overview/AgendaView.vue +++ b/src/components/overview/AgendaView.vue @@ -158,8 +158,7 @@ export default defineComponent({ } async function loadAgendas() { - const selected = new Date(selectedDate.value); - console.log(selected); + const selected = date.adjustDate(new Date(selectedDate.value), {milliseconds: 0, seconds: 0, minutes: 0, hours: 0}); const start = calendarRealView.value === 'day' ? selected : startOfWeek(selected); const end = date.addToDate(start, { days: calendarDays.value });