fix: invalid dates

This commit is contained in:
Xyphyn committed 2023-10-03 16:07:40 -07:00
1 parent facb1081c9
commit 0d08df2ad5
7 files changed
+23 -19

No files matched your search

+2 -1
View File
@@ -11,6 +11,7 @@
import ExpandableImage from '$lib/components/ui/ExpandableImage.svelte'
import { bestImageURL, postLink } from '$lib/components/lemmy/post/helpers.js'
import Empty from '$lib/components/helper/Empty.svelte'
import { publishedToDate } from '$lib/components/util/date.js'
export let post: PostView
export let actions: boolean = true
@@ -48,7 +49,7 @@
<PostMeta
community={hideCommunity ? undefined : post.community}
user={post.creator}
published={new Date(post.post.published + 'Z')}
published={publishedToDate(post.post.published)}
upvotes={post.counts.upvotes}
downvotes={post.counts.downvotes}
deleted={post.post.deleted}