diff options
| author | Fuwn <[email protected]> | 2024-01-08 22:56:35 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-01-08 22:56:35 -0800 |
| commit | 6cb54f8719ef4b34863d068d1af77213874f2869 (patch) | |
| tree | e35c52bfeb6372fe137984790c76dbd846a9ae17 /src | |
| parent | feat(match): anime better match algorithm (diff) | |
| download | due.moe-6cb54f8719ef4b34863d068d1af77213874f2869.tar.xz due.moe-6cb54f8719ef4b34863d068d1af77213874f2869.zip | |
feat(discussions): show date
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/Tools/EpisodeDiscussionCollector.svelte | 7 |
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> |