[fix] load events from time with hour 0
This commit is contained in:
parent
ba697e1d1a
commit
8f8eef1784
|
@ -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 });
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue