current progress with diagram and project fixes

This commit is contained in:
sara-pervana
2024-01-24 23:15:15 +01:00
committed by Sara Pervana
parent 60205b3c22
commit c03da10e98
19 changed files with 788 additions and 197 deletions

View File

@@ -1,5 +1,6 @@
export const formatDateTime = (date: string) => {
const _date = new Date(date);
export const formatDateTime = (date: string | number) => {
const dateToFormat = typeof date === "number" ? date * 1000 : date;
const _date = new Date(dateToFormat);
return _date.toLocaleDateString("en-US", {
year: "numeric",
month: "long",