From 10a2aa0e7cca78ccec6386b5f6c195454e791d60 Mon Sep 17 00:00:00 2001 From: lesion Date: Mon, 5 Aug 2024 18:40:59 +0200 Subject: [PATCH] fix: hide event ending at 00:00 in the next day, fix #352 --- pages/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/index.vue b/pages/index.vue index 8240ed5d..04537f70 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -88,7 +88,7 @@ export default { if (this.selectedDay) { const min = this.selectedDay.startOf('day').toUnixInteger() const max = this.selectedDay.endOf('day').toUnixInteger() - return this.events.filter(e => (e.start_datetime <= max && (e.end_datetime || e.start_datetime) >= min) && (this.filter.show_recurrent || !e.parentId)) + return this.events.filter(e => (e.start_datetime <= max && (e.end_datetime || (e.start_datetime + 1)) > min) && (this.filter.show_recurrent || !e.parentId)) } else if (this.isCurrentMonth && !this.filter.query) { return this.events.filter(e => { const max_datetime = Math.max(e.start_datetime, e.end_datetime)