From cf7c8a7b343acd7c9a4b6087f9a76b2e099889d5 Mon Sep 17 00:00:00 2001 From: mat Date: Sat, 5 Mar 2022 16:25:27 -0600 Subject: improve mayor timers --- src/routes/election.svelte | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'src/routes') diff --git a/src/routes/election.svelte b/src/routes/election.svelte index 69f4812..7b156b6 100644 --- a/src/routes/election.svelte +++ b/src/routes/election.svelte @@ -73,17 +73,26 @@

Last API update: - {millisecondsToTime(currentTime - data.last_updated * 1000)} + {millisecondsToTime(currentTime - data.last_updated * 1000, { + smallestUnit: 1, + parts: 1, + })}

Next API update: - {millisecondsToTime(currentTime - data.last_updated * 1000 + 10 * 60 * 1000)} + {millisecondsToTime(currentTime - data.last_updated * 1000 + 10 * 60 * 1000, { + smallestUnit: 1, + parts: 1, + })}

SkyBlock Mayor Election Status

Next election: - {millisecondsToTime(skyblockTime(data.previous.year + 1, 6, 27) - currentTime, { parts: 3 })} + {millisecondsToTime(skyblockTime(data.previous.year + 1, 6, 27) - currentTime, { + parts: 3, + smallestUnit: 1, + })}

{#if data.current} -- cgit