fix events filtering in homepage for multidate event

This commit is contained in:
lesion 2022-08-09 14:56:01 +02:00
parent 8cfa908c56
commit b0d486abe0
No known key found for this signature in database
GPG key ID: 352918250B012177

View file

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