Skip to content

Commit e5d738b

Browse files
committed
Remove relative date as it seems to be broken across timezones
1 parent 08382ac commit e5d738b

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

src/lib/components/EndMessage.svelte

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<script>
22
import { END_DATE } from "$lib/defs";
3-
import relativeDate from "tiny-relative-date";
43
</script>
54

65
<div
@@ -9,12 +8,7 @@
98
{#if END_DATE > new Date()}
109
<h2 class="text-xl font-bold text-primary-400">It's almost the end!</h2>
1110
<p>
12-
Construct will be ending <abbr
13-
title={`${END_DATE.toLocaleDateString()} ${END_DATE.toLocaleTimeString()}`}
14-
class="font-bold"
15-
>
16-
{relativeDate(END_DATE)}
17-
</abbr>, at 00:00 EST on April 20th ({END_DATE.toLocaleDateString()}
11+
Construct will be ending at 00:00 EST on April 20th ({END_DATE.toLocaleDateString()}
1812
{END_DATE.toLocaleTimeString()} in your timezone)
1913
</p>
2014
<p>
@@ -25,11 +19,7 @@
2519
{:else}
2620
<h2 class="text-xl font-bold text-primary-400">Construct has ended!</h2>
2721
<p>
28-
Construct has ended <abbr
29-
title={`${END_DATE.toLocaleDateString()} ${END_DATE.toLocaleTimeString()}`}
30-
>
31-
{relativeDate(END_DATE)}
32-
</abbr>.
22+
Construct has ended.
3323
</p>
3424
<p>
3525
The market is still open and you can still re-ship rejected projects, however you can't ship

0 commit comments

Comments
 (0)