bugfixing format date

This commit is contained in:
MuslemRahimi 2025-04-09 00:24:08 +02:00
parent e486b86c22
commit b55dcc1a45
2 changed files with 3 additions and 1 deletions

View File

@ -75,12 +75,13 @@
setDefault();
}
const formatDate = (dateString) => {
const formatDate = (dateString: string) => {
const date = new Date(dateString);
return date.toLocaleDateString("en-US", {
month: "short",
day: "2-digit",
year: "numeric",
timeZone: "America/New_York",
});
};

View File

@ -537,6 +537,7 @@
month: "short",
day: "2-digit",
year: "numeric",
timeZone: "America/New_York",
});
};