Skip to content

Commit

Permalink
feat: show year
Browse files Browse the repository at this point in the history
  • Loading branch information
Vid201 committed Dec 10, 2023
1 parent 74fe763 commit 9b44e1e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/mainsite/components/BaseFeesWidget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ const getTooltipFormatter = (
}

const dt = new Date(x);
const formattedDate = format(dt, "iii MMM dd");
const formattedDate = format(dt, "iii MMM dd yyyy");
const formattedTime = format(dt, "HH:mm:ss 'UTC'x");

const gradientCss =
Expand Down
2 changes: 1 addition & 1 deletion src/mainsite/components/EthSupplyWidget/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ const getTooltip = (
const formattedTotalUnit = type === "bitcoin" ? "BTC" : "ETH";

const dt = new Date(x);
const formattedDate = format(dt, "iii MMM dd");
const formattedDate = format(dt, "iii MMM dd yyyy");
const formattedTime = format(dt, "HH:mm:ss 'UTC'x");

const title = type === "pos" ? "ETH" : type === "pow" ? "ETH (PoW)" : "BTC";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ const getTooltipFormatter = (
}

const dt = new Date(x);
const formattedDate = DateFns.format(dt, "iii MMM dd");
const formattedDate = DateFns.format(dt, "iii MMM dd yyyy");
const formattedTime = DateFns.format(dt, "HH:mm:ss");
const formattedTimeZone = DateFns.format(dt, "'UTC'x");

Expand Down

0 comments on commit 9b44e1e

Please sign in to comment.