edge case selecting date

This commit is contained in:
lesion 2022-03-31 21:01:24 +02:00
parent e345738aff
commit 5127deb56a
No known key found for this signature in database
GPG key ID: 352918250B012177

View file

@ -104,7 +104,7 @@ export default {
if (this.selectedDay) {
const min = dayjs(this.selectedDay).startOf('day').unix()
const max = dayjs(this.selectedDay).endOf('day').unix()
return this.filteredEvents.filter(e => (e.start_datetime < max && e.start_datetime > min))
return this.filteredEvents.filter(e => (e.start_datetime <= max && e.start_datetime >= min))
} else if (this.isCurrentMonth) {
return this.filteredEvents.filter(e => e.end_datetime ? e.end_datetime > now : e.start_datetime + 2 * 60 * 60 > now)
} else {