From 9d89cf70c61984155878ce0b78439b4f5b9b2ea1 Mon Sep 17 00:00:00 2001 From: wlren Date: Mon, 10 Oct 2022 17:18:02 +0800 Subject: [PATCH] [questions][ui] change date time format --- apps/portal/src/components/questions/CommentListItem.tsx | 2 +- apps/portal/src/components/questions/card/AnswerCard.tsx | 2 +- apps/portal/src/components/questions/card/FullAnswerCard.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/portal/src/components/questions/CommentListItem.tsx b/apps/portal/src/components/questions/CommentListItem.tsx index 1cf87d50..1da9c7de 100644 --- a/apps/portal/src/components/questions/CommentListItem.tsx +++ b/apps/portal/src/components/questions/CommentListItem.tsx @@ -28,7 +28,7 @@ export default function CommentListItem({ src={authorImageUrl}>

{authorName}

- Posted on: {format(createdAt, 'Pp')} + Posted on: {format(createdAt, 'h:mm a, MMMM dd, yyyy')}

{content}

diff --git a/apps/portal/src/components/questions/card/AnswerCard.tsx b/apps/portal/src/components/questions/card/AnswerCard.tsx index 16088f3c..3e91fcf2 100644 --- a/apps/portal/src/components/questions/card/AnswerCard.tsx +++ b/apps/portal/src/components/questions/card/AnswerCard.tsx @@ -32,7 +32,7 @@ function AnswerCardWithoutHref({ src={authorImageUrl}>

{authorName}

- Posted on: {format(createdAt, 'Pp')} + Posted on: {format(createdAt, 'h:mm a, MMMM dd, yyyy')}

{content}

diff --git a/apps/portal/src/components/questions/card/FullAnswerCard.tsx b/apps/portal/src/components/questions/card/FullAnswerCard.tsx index 74282c77..42f4c82c 100644 --- a/apps/portal/src/components/questions/card/FullAnswerCard.tsx +++ b/apps/portal/src/components/questions/card/FullAnswerCard.tsx @@ -28,7 +28,7 @@ export default function FullAnswerCard({ src={authorImageUrl}>

{authorName}

- Posted on: {format(createdAt, 'Pp')} + Posted on: {format(createdAt, 'h:mm a, MMMM dd, yyyy')}

{content}