fix: format time

This commit is contained in:
Zack Spear
2023-06-26 15:46:58 -07:00
committed by Zack Spear
parent 9bda99b1d1
commit 32fd82dea4

View File

@@ -1,5 +1,11 @@
import dayjs from 'dayjs';
import localizedFormat from 'dayjs/plugin/localizedFormat';
const formatDate = (date: string): string => dayjs(parseInt(date, 10)).format('llll');
dayjs.extend(localizedFormat);
const formatDate = (date: number): string => {
console.debug('[formatDate]', date, dayjs(date));
return dayjs(date).format('llll');
}
export default formatDate;