Merge pull request #38 from tfaughnan/main

fix: parse date strings as UTC
This commit is contained in:
Xylight authored and GitHub committed 2023-07-28 17:29:39 -07:00
commit 05fcbf09fe
7 files changed
+7 -7

No files matched your search

+1 -1
View File
@@ -33,7 +33,7 @@
</div>
<span class="flex flex-row items-center gap-1 text-sm">
<Icon src={Calendar} width={16} height={16} mini />
<RelativeDate date={new Date(site.site.published)} />
<RelativeDate date={new Date(site.site.published + 'Z')} />
</span>
<div class="text-sm flex flex-row flex-wrap gap-3">
<span class="flex flex-row items-center gap-1">
@@ -101,7 +101,7 @@
{node.comment_view.counts.score}
</div>
{/if}
<RelativeDate date={new Date(node.comment_view.comment.published)} />
<RelativeDate date={new Date(node.comment_view.comment.published + 'Z')} />
<span>•</span>
<span>
{Math.floor(
@@ -16,7 +16,7 @@
deleted={false}
featured={false}
nsfw={comment.post.nsfw}
published={new Date(comment.post.published)}
published={new Date(comment.post.published + 'Z')}
saved={false}
/>
<Button
@@ -87,7 +87,7 @@
</div>
<span class="flex flex-row items-center gap-1 text-sm">
<Icon src={Calendar} width={16} height={16} mini />
<RelativeDate date={new Date(community_view.community.published)} />
<RelativeDate date={new Date(community_view.community.published + 'Z')} />
</span>
<div class="text-sm flex flex-row flex-wrap gap-3">
<span class="flex flex-row items-center gap-1">
+1 -1
View File
@@ -22,7 +22,7 @@
<PostMeta
community={post.community}
user={post.creator}
published={new Date(post.post.published)}
published={new Date(post.post.published + 'Z')}
upvotes={post.counts.upvotes}
downvotes={post.counts.downvotes}
deleted={post.post.deleted}
+1 -1
View File
@@ -107,7 +107,7 @@
locked={postData.post.locked}
featured={postData.post.featured_community || postData.post.featured_local}
nsfw={postData.post.nsfw}
published={new Date(postData.post.published)}
published={new Date(postData.post.published + 'Z')}
saved={postData.saved}
/>
<h1 class="font-bold text-lg">{post.name}</h1>
+1 -1
View File
@@ -183,7 +183,7 @@
<span class="flex flex-row items-center gap-1 text-sm">
<Icon src={Calendar} width={16} height={16} mini />
<span class="capitalize">
<RelativeDate date={new Date(data.person_view.person.published)} />
<RelativeDate date={new Date(data.person_view.person.published + 'Z')} />
</span>
</span>
<div class="text-sm flex flex-row flex-wrap gap-3">