From c5634edfaca4c856395afa4f38ffac32c5802d0d Mon Sep 17 00:00:00 2001 From: mat Date: Sat, 5 Mar 2022 17:06:21 -0600 Subject: make some mayor stuff update automatically --- src/routes/election.svelte | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/routes/election.svelte b/src/routes/election.svelte index 8a88410..e987f8c 100644 --- a/src/routes/election.svelte +++ b/src/routes/election.svelte @@ -105,7 +105,7 @@

Ongoing election (Year {data.current.year})

Ends in: - {millisecondsToTime(skyblockTime(data.previous.year + 1, 3, 27) - Date.now())} + {millisecondsToTime(skyblockTime(data.previous.year + 1, 3, 27) - currentTime)}

{#each data.current.candidates.sort((a, b) => a.votes - b.votes) as candidate} @@ -206,7 +206,9 @@
  • {specialMayors[(nextSpecialMayorYear / 8 + i) % 3]} - ({millisecondsToTime(skyblockTime(nextSpecialMayorYear + 8 * i + 1, 3, 27) - Date.now())}) + ({millisecondsToTime( + skyblockTime(nextSpecialMayorYear + 8 * i + 1, 3, 27) - currentTime + )})
  • {/each} -- cgit