mirror of
https://framagit.org/les/gancio.git
synced 2025-01-31 16:42:22 +01:00
fix: hide event ending at 00:00 in the next day, fix #352
This commit is contained in:
parent
a10ccb3007
commit
10a2aa0e7c
1 changed files with 1 additions and 1 deletions
|
@ -88,7 +88,7 @@ export default {
|
||||||
if (this.selectedDay) {
|
if (this.selectedDay) {
|
||||||
const min = this.selectedDay.startOf('day').toUnixInteger()
|
const min = this.selectedDay.startOf('day').toUnixInteger()
|
||||||
const max = this.selectedDay.endOf('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) {
|
} else if (this.isCurrentMonth && !this.filter.query) {
|
||||||
return this.events.filter(e => {
|
return this.events.filter(e => {
|
||||||
const max_datetime = Math.max(e.start_datetime, e.end_datetime)
|
const max_datetime = Math.max(e.start_datetime, e.end_datetime)
|
||||||
|
|
Loading…
Reference in a new issue