From 14f3ea9fdabe6c451baf5c346b63dae5c3fa422e Mon Sep 17 00:00:00 2001 From: lesion Date: Fri, 21 Apr 2023 15:08:56 +0200 Subject: [PATCH] minor with events starting or ending at 00:00 --- pages/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/index.vue b/pages/index.vue index e85777a1..bdb36ad0 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -81,9 +81,9 @@ 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) >= min) && (this.filter.show_recurrent || !e.parentId)) } else if (this.isCurrentMonth && !this.filter.query) { - return this.events.filter(e => ((e.end_datetime ? e.end_datetime > now : e.start_datetime + 3 * 60 * 60 > now) && (this.filter.show_recurrent || !e.parentId))) + return this.events.filter(e => ((e.end_datetime ? e.end_datetime >= now : e.start_datetime + 3 * 60 * 60 >= now) && (this.filter.show_recurrent || !e.parentId))) } else { return this.events.filter(e => this.filter.show_recurrent || !e.parentId) }