From 2f0fb3fd0c03d0aa7e0c302df1d6db49f70093a1 Mon Sep 17 00:00:00 2001 From: Lawrence Forman Date: Wed, 19 Jun 2024 03:59:41 -0400 Subject: [PATCH] tweak progress countdown --- src/lib/components/contest-progress.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/components/contest-progress.svelte b/src/lib/components/contest-progress.svelte index aee209a..81c5447 100644 --- a/src/lib/components/contest-progress.svelte +++ b/src/lib/components/contest-progress.svelte @@ -82,7 +82,7 @@ function getHumanTimeLeft(when: Date): string { const dt = when.getTime() - Date.now(); - if (dt > ONE_DAY_MS) { + if (dt > ONE_DAY_MS * 2) { return `${Math.round(dt / ONE_DAY_MS)} days`; } if (dt >= ONE_HOUR_MS * 2) {