Replace `new Date()` with `Date.now()` where appropriate
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
fdd6674e15
commit
eec9d73e61
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue