[questions][ui] change date time format

pull/355/head
wlren 3 years ago
parent 8af58fe87a
commit 9d89cf70c6

@ -28,7 +28,7 @@ export default function CommentListItem({
src={authorImageUrl}></img>
<h1 className="font-bold">{authorName}</h1>
<p className="pt-1 text-xs font-extralight">
Posted on: {format(createdAt, 'Pp')}
Posted on: {format(createdAt, 'h:mm a, MMMM dd, yyyy')}
</p>
</div>
<p className="pl-1 pt-1">{content}</p>

@ -32,7 +32,7 @@ function AnswerCardWithoutHref({
src={authorImageUrl}></img>
<h1 className="font-bold">{authorName}</h1>
<p className="pt-1 text-xs font-extralight">
Posted on: {format(createdAt, 'Pp')}
Posted on: {format(createdAt, 'h:mm a, MMMM dd, yyyy')}
</p>
</div>
<p className="pl-1 pt-1">{content}</p>

@ -28,7 +28,7 @@ export default function FullAnswerCard({
src={authorImageUrl}></img>
<h1 className="font-bold">{authorName}</h1>
<p className="pt-1 text-xs font-extralight">
Posted on: {format(createdAt, 'Pp')}
Posted on: {format(createdAt, 'h:mm a, MMMM dd, yyyy')}
</p>
</div>
<p className="pl-1 pt-1">{content}</p>

Loading…
Cancel
Save