fixing type error on Date component
This commit is contained in:
parent
8ac5e73d4a
commit
5e9ea85b83
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ if (!date) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
const dateObj = typeof date === "string" ? new Date(date) : date;
|
const dateObj = typeof date === "string" ? new globalThis.Date(date) : date;
|
||||||
const options: Intl.DateTimeFormatOptions = { year: "numeric", month: "long", day: "numeric" };
|
const options: Intl.DateTimeFormatOptions = { year: "numeric", month: "long", day: "numeric" };
|
||||||
|
|
||||||
if (showTime) {
|
if (showTime) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue