When there is an event today but time is later than right now, dateFns.isWithinRange would take that time into account and would fail to identify that this event belongs to Today section.
Implementation
Because we are not using time of the event for sorting logic, the fix is to sanitate hours and minutes to 0:00. This also solves the issue when admin accidentally creates an event with end time earlier than start time.
This PR contains also #198 , and so #198 should be merged first.
Motivation
When there is an event today but time is later than right now,
dateFns.isWithinRange
would take that time into account and would fail to identify that this event belongs to Today section.Implementation
Because we are not using time of the event for sorting logic, the fix is to sanitate hours and minutes to 0:00. This also solves the issue when admin accidentally creates an event with end time earlier than start time.
This PR contains also #198 , and so #198 should be merged first.
Pre-flight checklist