From 6c9c05bf30edc52291ba286df8382ca42cf50039 Mon Sep 17 00:00:00 2001 From: Danilo Castro Date: Sat, 29 May 2021 12:12:59 +0100 Subject: [PATCH] fix(Agenda): consider start & end of day to filter events --- src/Agenda.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Agenda.js b/src/Agenda.js index e8e5a9b8e..fcd8fdd85 100644 --- a/src/Agenda.js +++ b/src/Agenda.js @@ -147,7 +147,7 @@ function Agenda({ let range = dates.range(date, end, 'day') - events = events.filter(event => inRange(event, date, end, accessors)) + events = events.filter(event => inRange(event, dates.startOf(date, 'day'), dates.endOf(end, 'day'), accessors)) events.sort((a, b) => +accessors.start(a) - +accessors.start(b))