explorer: Fix midnight timestamps (#15843)

This commit is contained in:
Justin Starry
2021-03-14 11:26:14 +08:00
committed by GitHub
parent 485a943958
commit 420174d3dd

View File

@ -12,7 +12,7 @@ export function displayTimestamp(
hour: "numeric",
minute: "numeric",
second: "numeric",
hour12: false,
hourCycle: "h23",
timeZoneName: shortTimeZoneName ? "short" : "long",
}).format(expireDate);
return `${dateString} at ${timeString}`;
@ -33,7 +33,7 @@ export function displayTimestampUtc(
hour: "numeric",
minute: "numeric",
second: "numeric",
hour12: false,
hourCycle: "h23",
timeZone: "UTC",
timeZoneName: shortTimeZoneName ? "short" : "long",
}).format(expireDate);