diff --git a/explorer/src/lib/components/__tests__/__snapshots__/BlockDetails.spec.js.snap b/explorer/src/lib/components/__tests__/__snapshots__/BlockDetails.spec.js.snap index 1c5ae8ea67..65fd87bc42 100644 --- a/explorer/src/lib/components/__tests__/__snapshots__/BlockDetails.spec.js.snap +++ b/explorer/src/lib/components/__tests__/__snapshots__/BlockDetails.spec.js.snap @@ -156,7 +156,7 @@ exports[`Block Details > renders the Block Details component 1`] = ` datetime="2024-04-16T20:07:02.000Z" slot="definition" > - last month + Tue, 16 Apr 2024 20:07:02 GMT (last month) diff --git a/explorer/src/lib/components/__tests__/__snapshots__/BlocksList.spec.js.snap b/explorer/src/lib/components/__tests__/__snapshots__/BlocksList.spec.js.snap index 900ae44ce6..617350d8f0 100644 --- a/explorer/src/lib/components/__tests__/__snapshots__/BlocksList.spec.js.snap +++ b/explorer/src/lib/components/__tests__/__snapshots__/BlocksList.spec.js.snap @@ -71,7 +71,7 @@ exports[`Blocks List > renders the Blocks List component 1`] = ` datetime="2024-04-16T20:07:02.000Z" slot="definition" > - last month + Tue, 16 Apr 2024 20:07:02 GMT (last month) diff --git a/explorer/src/lib/components/__tests__/__snapshots__/TransactionDetails.spec.js.snap b/explorer/src/lib/components/__tests__/__snapshots__/TransactionDetails.spec.js.snap index d46935375e..d32685288f 100644 --- a/explorer/src/lib/components/__tests__/__snapshots__/TransactionDetails.spec.js.snap +++ b/explorer/src/lib/components/__tests__/__snapshots__/TransactionDetails.spec.js.snap @@ -157,9 +157,7 @@ exports[`Transaction Details > renders the Transaction Details component 1`] = ` datetime="2024-04-16T06:39:09.000Z" slot="definition" > - last month - - Tue, 16 Apr 2024 06:39:09 GMT + Tue, 16 Apr 2024 06:39:09 GMT (last month) @@ -523,9 +521,7 @@ exports[`Transaction Details > renders the Transaction Details component with th datetime="2024-04-16T06:39:09.000Z" slot="definition" > - last month - - Tue, 16 Apr 2024 06:39:09 GMT + Tue, 16 Apr 2024 06:39:09 GMT (last month) diff --git a/explorer/src/lib/components/__tests__/__snapshots__/TransactionsList.spec.js.snap b/explorer/src/lib/components/__tests__/__snapshots__/TransactionsList.spec.js.snap index 73b4396690..3310293366 100644 --- a/explorer/src/lib/components/__tests__/__snapshots__/TransactionsList.spec.js.snap +++ b/explorer/src/lib/components/__tests__/__snapshots__/TransactionsList.spec.js.snap @@ -71,7 +71,7 @@ exports[`Transactions List > renders the Transactions List component 1`] = ` datetime="2024-04-16T06:39:09.000Z" slot="definition" > - last month + Tue, 16 Apr 2024 06:39:09 GMT (last month) diff --git a/explorer/src/lib/components/block-details/BlockDetails.css b/explorer/src/lib/components/block-details/BlockDetails.css index 4fbe3372d3..97637496e6 100644 --- a/explorer/src/lib/components/block-details/BlockDetails.css +++ b/explorer/src/lib/components/block-details/BlockDetails.css @@ -11,10 +11,6 @@ color: var(--primary-color); } -.block-details__list-timestamp { - text-transform: uppercase; -} - .block-details__gas-used.dusk-progress-bar { width: 12.5rem; } diff --git a/explorer/src/lib/components/block-details/BlockDetails.svelte b/explorer/src/lib/components/block-details/BlockDetails.svelte index b6b3a3fc8d..78485d625b 100644 --- a/explorer/src/lib/components/block-details/BlockDetails.svelte +++ b/explorer/src/lib/components/block-details/BlockDetails.svelte @@ -103,7 +103,7 @@ class="block-details__list-timestamp" slot="definition" > - {getRelativeTimeString(data.header.date, "long")} + {`${data.header.date.toUTCString()} (${getRelativeTimeString(data.header.date, "long")})`} diff --git a/explorer/src/lib/components/blocks-list/BlocksList.svelte b/explorer/src/lib/components/blocks-list/BlocksList.svelte index 8f1a408d30..50893932f2 100644 --- a/explorer/src/lib/components/blocks-list/BlocksList.svelte +++ b/explorer/src/lib/components/blocks-list/BlocksList.svelte @@ -37,7 +37,7 @@ class="block-details__list-timestamp" slot="definition" > - {getRelativeTimeString(data.header.date, "long")} + {`${data.header.date.toUTCString()} (${getRelativeTimeString(data.header.date, "long")})`} diff --git a/explorer/src/lib/components/transaction-details/TransactionDetails.css b/explorer/src/lib/components/transaction-details/TransactionDetails.css index 9166d08926..96292cfc7b 100644 --- a/explorer/src/lib/components/transaction-details/TransactionDetails.css +++ b/explorer/src/lib/components/transaction-details/TransactionDetails.css @@ -15,10 +15,6 @@ text-decoration: none; } -.transaction-details__list-timestamp { - text-transform: uppercase; -} - .transaction-details__gas-used { width: 12.5rem; } diff --git a/explorer/src/lib/components/transaction-details/TransactionDetails.svelte b/explorer/src/lib/components/transaction-details/TransactionDetails.svelte index c717735e37..a32fd7dc5c 100644 --- a/explorer/src/lib/components/transaction-details/TransactionDetails.svelte +++ b/explorer/src/lib/components/transaction-details/TransactionDetails.svelte @@ -119,8 +119,7 @@ class="transaction-details__list-timestamp" slot="definition" > - {getRelativeTimeString(data.date, "long")} - {data.date.toUTCString()} + {`${data.date.toUTCString()} (${getRelativeTimeString(data.date, "long")})`} diff --git a/explorer/src/lib/components/transactions-list/TransactionsList.svelte b/explorer/src/lib/components/transactions-list/TransactionsList.svelte index a772d0857e..0b7521b76a 100644 --- a/explorer/src/lib/components/transactions-list/TransactionsList.svelte +++ b/explorer/src/lib/components/transactions-list/TransactionsList.svelte @@ -59,7 +59,7 @@ class="transaction-details__list-timestamp" slot="definition" > - {getRelativeTimeString(data.date, "long")} + {`${data.date.toUTCString()} (${getRelativeTimeString(data.date, "long")})`}