aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/routes/election.svelte6
1 files changed, 4 insertions, 2 deletions
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 @@
<h2>Ongoing election <span class="candidate-year">(Year {data.current.year})</span></h2>
<p class="election-ends-in-text">
<b>Ends in:</b>
- {millisecondsToTime(skyblockTime(data.previous.year + 1, 3, 27) - Date.now())}
+ {millisecondsToTime(skyblockTime(data.previous.year + 1, 3, 27) - currentTime)}
</p>
<div class="mayor-candidates">
{#each data.current.candidates.sort((a, b) => a.votes - b.votes) as candidate}
@@ -206,7 +206,9 @@
<li>
<b>{specialMayors[(nextSpecialMayorYear / 8 + i) % 3]}</b>
<span class="next-special-mayor-time">
- ({millisecondsToTime(skyblockTime(nextSpecialMayorYear + 8 * i + 1, 3, 27) - Date.now())})
+ ({millisecondsToTime(
+ skyblockTime(nextSpecialMayorYear + 8 * i + 1, 3, 27) - currentTime
+ )})
</span>
</li>
{/each}