bugfixing format date
This commit is contained in:
parent
e486b86c22
commit
b55dcc1a45
@ -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",
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
@ -537,6 +537,7 @@
|
||||
month: "short",
|
||||
day: "2-digit",
|
||||
year: "numeric",
|
||||
timeZone: "America/New_York",
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user