diff --git a/web/src/Graph.tsx b/web/src/Graph.tsx index 17706c8..5932e32 100755 --- a/web/src/Graph.tsx +++ b/web/src/Graph.tsx @@ -52,15 +52,15 @@ function Graph() { const d = dayjs.tz(createdAt); if (numOfDay >= 365) { - return d.format("YYYY/MM"); + return d.format("M/YY"); } if (numOfDay >= 60) { - return d.startOf("week").format("YYYY/MM/DD"); + return d.startOf("week").format("D/M/YY"); } if (numOfDay >= 30) { - return d.format("YYYY/MM/DD"); + return d.format("D/M/YY"); } - return d.format("YYYY/MM/DD HH:mm"); + return d.format("D/M/YY HH:mm"); } function getGraphData(rawData: Price[]): GraphData[] { diff --git a/web/src/Table.tsx b/web/src/Table.tsx index 90ae996..4cbe975 100755 --- a/web/src/Table.tsx +++ b/web/src/Table.tsx @@ -54,7 +54,7 @@ function GoldTable() { return goldPrices.map((x) => { return { - date: dayjs.tz(x.createdAt).format("YYYY-MM-DD HH:mm"), + date: dayjs.tz(x.createdAt).format("ddd, DD MMM YYYY HH:mm"), buy: formatNumber(x.buy), sell: formatNumber(x.sell), };