diff --git a/explorer/src/components/account/StakeAccountCards.tsx b/explorer/src/components/account/StakeAccountCards.tsx index f776b70b16..e4c7e14d3b 100644 --- a/explorer/src/components/account/StakeAccountCards.tsx +++ b/explorer/src/components/account/StakeAccountCards.tsx @@ -27,10 +27,22 @@ function LockupCard({ stakeAccount }: { stakeAccount: StakeAccount }) { const unixTimestamp = stakeAccount.meta?.lockup.unixTimestamp; if (unixTimestamp && unixTimestamp > 0) { const expireDate = new Date(unixTimestamp * 1000); + const dateString = new Intl.DateTimeFormat("en-US", { + year: "numeric", + month: "long", + day: "numeric" + }).format(expireDate); + const timeString = new Intl.DateTimeFormat("en-US", { + hour: "numeric", + minute: "numeric", + second: "numeric", + hour12: false, + timeZoneName: "long" + }).format(expireDate); + const expireString = `${dateString} at ${timeString}`; return (
- Account is locked! Lockup expires on{" "} - {expireDate.toLocaleDateString()} at {expireDate.toLocaleTimeString()} + Account is locked! Lockup expires on {expireString}
); } else {