Replace `new Date()` with `Date.now()` where appropriate
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Luca 2021-12-24 15:48:07 +01:00
parent fdd6674e15
commit eec9d73e61
1 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@
} }
function render(talk) { function render(talk) {
const now = new Date(); const now = Date.now();
const max = talk.end - talk.start; const max = talk.end - talk.start;
let value = 0; let value = 0;
@ -59,7 +59,7 @@
const resp = await fetch("https://static.rc3.world/schedule/everything.json"); const resp = await fetch("https://static.rc3.world/schedule/everything.json");
const schedule = await resp.json(); const schedule = await resp.json();
const now = new Date(); const now = Date.now();
const upcoming = []; const upcoming = [];
for (const day of schedule.schedule.conference.days) { for (const day of schedule.schedule.conference.days) {