diff --git a/src/pages/Home.svelte b/src/pages/Home.svelte index 77c5ffe..b863da1 100644 --- a/src/pages/Home.svelte +++ b/src/pages/Home.svelte @@ -57,7 +57,7 @@

Past

- {#each data.filter((e) => e.start < millis) as event} + {#each data.filter((e) => e.start < millis).reverse() as event} {/each}
diff --git a/src/pages/home/EventCard.svelte b/src/pages/home/EventCard.svelte index 6ff8c51..d9713e4 100644 --- a/src/pages/home/EventCard.svelte +++ b/src/pages/home/EventCard.svelte @@ -11,10 +11,11 @@
{event.name}
-

Startet: {new Intl.DateTimeFormat().format(event.start)}

{#if !sameDate} +

Startet: {new Intl.DateTimeFormat().format(event.start)}

Endet: {new Intl.DateTimeFormat().format(event.end)}

{:else} +

Am: {new Intl.DateTimeFormat().format(event.start)}

 

{/if}