feat: fix date for preview

This commit is contained in:
Nevo David 2025-08-26 22:29:22 +07:00
parent b04510222b
commit 60da0f6fb1
1 changed files with 2 additions and 0 deletions

View File

@ -1,5 +1,7 @@
import { FC } from 'react';
import dayjs from 'dayjs';
import utc from 'dayjs/plugin/utc';
dayjs.extend(utc);
export const RenderPreviewDate: FC<{ date: string }> = ({ date }) => {
return <>{dayjs.utc(date).local().format('MMMM D, YYYY h:mm A')}</>;