Handle all-day current events
This commit is contained in:
parent
faf6a924ba
commit
ee63b4815f
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ function getEvents(number) {
|
|||
const allEvents = window.c_base_events.concat(window.c_base_regulars);
|
||||
const current = allEvents.filter((event) => {
|
||||
const start = new Date(event.start);
|
||||
if (!event.end) {
|
||||
if ((!event.data || event.allDay) && start.toDateString() !== now.toDateString()) {
|
||||
return false;
|
||||
}
|
||||
const end = new Date(event.end);
|
||||
|
|
Loading…
Reference in a new issue