From eec9d73e6197698402ac7cf6aee1ac1ddb360e9a Mon Sep 17 00:00:00 2001 From: Luca Date: Fri, 24 Dec 2021 15:48:07 +0100 Subject: [PATCH] Replace `new Date()` with `Date.now()` where appropriate --- static/infobeamer/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/infobeamer/index.html b/static/infobeamer/index.html index 1c4ddbe..3e2817c 100644 --- a/static/infobeamer/index.html +++ b/static/infobeamer/index.html @@ -26,7 +26,7 @@ } function render(talk) { - const now = new Date(); + const now = Date.now(); const max = talk.end - talk.start; let value = 0; @@ -59,7 +59,7 @@ const resp = await fetch("https://static.rc3.world/schedule/everything.json"); const schedule = await resp.json(); - const now = new Date(); + const now = Date.now(); const upcoming = []; for (const day of schedule.schedule.conference.days) {