aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-01-08 22:56:35 -0800
committerFuwn <[email protected]>2024-01-08 22:56:35 -0800
commit6cb54f8719ef4b34863d068d1af77213874f2869 (patch)
treee35c52bfeb6372fe137984790c76dbd846a9ae17
parentfeat(match): anime better match algorithm (diff)
downloaddue.moe-6cb54f8719ef4b34863d068d1af77213874f2869.tar.xz
due.moe-6cb54f8719ef4b34863d068d1af77213874f2869.zip
feat(discussions): show date
-rw-r--r--src/lib/Tools/EpisodeDiscussionCollector.svelte7
1 files changed, 7 insertions, 0 deletions
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>