[fix] load events from time with hour 0

This commit is contained in:
Tim Gröger 2021-11-19 22:49:03 +01:00
parent ba697e1d1a
commit 8f8eef1784
1 changed files with 1 additions and 2 deletions

View File

@ -158,8 +158,7 @@ export default defineComponent({
} }
async function loadAgendas() { async function loadAgendas() {
const selected = new Date(selectedDate.value); const selected = date.adjustDate(new Date(selectedDate.value), {milliseconds: 0, seconds: 0, minutes: 0, hours: 0});
console.log(selected);
const start = calendarRealView.value === 'day' ? selected : startOfWeek(selected); const start = calendarRealView.value === 'day' ? selected : startOfWeek(selected);
const end = date.addToDate(start, { days: calendarDays.value }); const end = date.addToDate(start, { days: calendarDays.value });