Skip to content
Snippets Groups Projects
Commit d0a4a914 authored by Alexander Schoch's avatar Alexander Schoch
Browse files

subtract one day from now in order to show events on the same day

parent 3af75154
No related branches found
No related tags found
No related merge requests found
......@@ -20,5 +20,6 @@ export function formatTimeFromDB(startTime, endTime) {
export function isInFuture(event) {
const now = new Date();
now.setDate(now.getDate() - 1);
return event.date > now.toISOString();
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment