From 6cb54f8719ef4b34863d068d1af77213874f2869 Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Mon, 8 Jan 2024 22:56:35 -0800
Subject: feat(discussions): show date

---
 src/lib/Tools/EpisodeDiscussionCollector.svelte | 7 +++++++
 1 file changed, 7 insertions(+)

(limited to 'src/lib/Tools/EpisodeDiscussionCollector.svelte')

diff --git a/src/lib/Tools/EpisodeDiscussionCollector.svelte b/src/lib/Tools/EpisodeDiscussionCollector.svelte
index 2399b125..e1ffa8dd 100644
--- a/src/lib/Tools/EpisodeDiscussionCollector.svelte
+++ b/src/lib/Tools/EpisodeDiscussionCollector.svelte
@@ -44,6 +44,13 @@
 					.filter((thread) => thread.title.includes('[Spoilers]') && thread.title.includes('Episode'))
 					.sort((a, b) => b.createdAt - a.createdAt) as thread}
 					<li>
+						<span style="opacity: 50%; white-space: pre;">
+							{new Date(thread.createdAt * 1000).toLocaleDateString('en-US', {
+								month: 'short',
+								day: 'numeric',
+								year: 'numeric'
+							})}
+						</span>
 						<a href={`https://anilist.co/forum/thread/${thread.id}`} target="_blank">
 							{thread.title.replace('[Spoilers]', '')}
 						</a>
-- 
cgit v1.2.3

