fix: invalid dates
This commit is contained in:
1 parent
facb1081c9
commit
0d08df2ad5
7 files changed
+23
-19
No files matched your search
@@ -33,9 +33,6 @@
|
||||
class="flex items-center gap-1 text-green-600 dark:text-green-400 font-medium"
|
||||
>
|
||||
<UserLink showInstance={true} avatar user={item.moderator} />
|
||||
{#if !item.moderator.admin}
|
||||
<ShieldIcon filled width={16} />
|
||||
{/if}
|
||||
</span>
|
||||
{/if}
|
||||
{#if item.moderatee}
|
||||
|
||||
@@ -39,6 +39,7 @@
|
||||
import EndPlaceholder from '$lib/components/ui/EndPlaceholder.svelte'
|
||||
import { userSettings } from '$lib/settings.js'
|
||||
import { feature } from '$lib/version.js'
|
||||
import { publishedToDate } from '$lib/components/util/date.js'
|
||||
|
||||
export let data
|
||||
|
||||
@@ -162,7 +163,7 @@
|
||||
featured={post.post_view.post.featured_community ||
|
||||
post.post_view.post.featured_local}
|
||||
nsfw={post.post_view.post.nsfw}
|
||||
published={new Date(post.post_view.post.published + 'Z')}
|
||||
published={publishedToDate(post.post_view.post.published)}
|
||||
saved={post.post_view.saved}
|
||||
/>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user