explorer: Fix midnight timestamps (#15843)
This commit is contained in:
@ -12,7 +12,7 @@ export function displayTimestamp(
|
|||||||
hour: "numeric",
|
hour: "numeric",
|
||||||
minute: "numeric",
|
minute: "numeric",
|
||||||
second: "numeric",
|
second: "numeric",
|
||||||
hour12: false,
|
hourCycle: "h23",
|
||||||
timeZoneName: shortTimeZoneName ? "short" : "long",
|
timeZoneName: shortTimeZoneName ? "short" : "long",
|
||||||
}).format(expireDate);
|
}).format(expireDate);
|
||||||
return `${dateString} at ${timeString}`;
|
return `${dateString} at ${timeString}`;
|
||||||
@ -33,7 +33,7 @@ export function displayTimestampUtc(
|
|||||||
hour: "numeric",
|
hour: "numeric",
|
||||||
minute: "numeric",
|
minute: "numeric",
|
||||||
second: "numeric",
|
second: "numeric",
|
||||||
hour12: false,
|
hourCycle: "h23",
|
||||||
timeZone: "UTC",
|
timeZone: "UTC",
|
||||||
timeZoneName: shortTimeZoneName ? "short" : "long",
|
timeZoneName: shortTimeZoneName ? "short" : "long",
|
||||||
}).format(expireDate);
|
}).format(expireDate);
|
||||||
|
Reference in New Issue
Block a user