diff --git a/frontend/app/src/components/home/thread/ThreadPreview.svelte b/frontend/app/src/components/home/thread/ThreadPreview.svelte index 8eb7e8ba52..3af7cbab3d 100644 --- a/frontend/app/src/components/home/thread/ThreadPreview.svelte +++ b/frontend/app/src/components/home/thread/ThreadPreview.svelte @@ -157,7 +157,7 @@ eventIndex={thread.rootMessage.index} timestamp={thread.rootMessage.timestamp} expiresAt={thread.rootMessage.expiresAt} - dateFormatter={client.toDatetimeString} + dateFormatter={(date) => client.toDatetimeString(date)} msg={thread.rootMessage.event} /> {#if missingMessages > 0} @@ -200,7 +200,7 @@ eventIndex={evt.index} timestamp={evt.timestamp} expiresAt={evt.expiresAt} - dateFormatter={client.toDatetimeString} + dateFormatter={(date) => client.toDatetimeString(date)} msg={evt.event} /> {/each} {/each}