Skip to content

Commit

Permalink
fix(Agenda): consider start & end of day to filter events
Browse files Browse the repository at this point in the history
  • Loading branch information
daniloster committed May 29, 2021
1 parent 7e87e48 commit 6c9c05b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Agenda.js
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down

0 comments on commit 6c9c05b

Please sign in to comment.