Add UTC timing, tweak copy (#14460)

* Add UTC timing, tweak copy

* More copy tweaks

* More copy
This commit is contained in:
R. M. Shea 2021-01-06 10:35:30 -07:00 committed by GitHub
parent 0767ea174e
commit a31f5f467b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 18 additions and 13 deletions

View File

@ -11,14 +11,15 @@ export function displayTimestamp(unixTimestamp: number): string {
year: "numeric",
month: "long",
day: "numeric",
timeZone: "UTC",
}).format(expireDate);
const timeString = new Intl.DateTimeFormat("en-US", {
hour: "numeric",
minute: "numeric",
hour12: false,
timeZoneName: "long",
timeZone: "UTC",
}).format(expireDate);
return `${dateString} at ${timeString}`;
return `${dateString} ${timeString}`;
}
export function UnlockAlert() {
@ -72,13 +73,16 @@ export function UnlockAlert() {
return (
<div className="alert alert-secondary text-center">
<p>An unlock event is timed for midnight January 7th UTC cluster time.</p>
<p>
Cluster time is currently {displayTimestamp(blockTime * 1000)} and may
differ from actual UTC time.
<p className="mb-1">
An unlock event is scheduled for January 7, 2021 00:00 UTC cluster time.
</p>
<p className="mb-1">
Cluster time is currently {displayTimestamp(blockTime * 1000)} UTC.
Cluster time may vary from actual UTC time.
</p>
<p className="mb-0">
More information can be found{" "}
<u>
<a
href="https://solana.com/transparency"
className="text-white font-weight-bold"
@ -86,6 +90,7 @@ export function UnlockAlert() {
>
here
</a>
</u>
.
</p>
</div>