diff --git a/apps/portal/src/components/resumes/browse/ResumeListItem.tsx b/apps/portal/src/components/resumes/browse/ResumeListItem.tsx index b314376a..10689062 100644 --- a/apps/portal/src/components/resumes/browse/ResumeListItem.tsx +++ b/apps/portal/src/components/resumes/browse/ResumeListItem.tsx @@ -55,8 +55,9 @@ export default function ResumeListItem({ href, resumeInfo }: Props) {
- Uploaded {formatDistanceToNow(resumeInfo.createdAt)} ago by{' '} - {resumeInfo.user} + {`Uploaded ${formatDistanceToNow(resumeInfo.createdAt, { + addSuffix: true, + })} by ${resumeInfo.user}`}
{resumeInfo.location}
diff --git a/apps/portal/src/pages/resumes/[resumeId].tsx b/apps/portal/src/pages/resumes/[resumeId].tsx index 79fbd077..45c98e60 100644 --- a/apps/portal/src/pages/resumes/[resumeId].tsx +++ b/apps/portal/src/pages/resumes/[resumeId].tsx @@ -178,10 +178,9 @@ export default function ResumeReviewPage() { aria-hidden="true" className="mr-1.5 h-5 w-5 flex-shrink-0 text-gray-400" /> - {`Uploaded ${formatDistanceToNow( - new Date(detailsQuery.data.createdAt), - { addSuffix: true }, - )} by ${detailsQuery.data.user.name}`} + {`Uploaded ${formatDistanceToNow(detailsQuery.data.createdAt, { + addSuffix: true, + })} by ${detailsQuery.data.user.name}`} {detailsQuery.data.additionalInfo && (