diff options
author | Elizabeth Hunt <lizhunt@amazon.com> | 2025-01-17 12:03:39 -0800 |
---|---|---|
committer | Elizabeth Hunt <lizhunt@amazon.com> | 2025-01-17 12:05:21 -0800 |
commit | 582870c12d9e1ec5b84882bee4db8dcd56b261a7 (patch) | |
tree | 42748ca1edc38571ecd11b849c5e72581aa68344 /app/components/WhoisChart.tsx | |
parent | 2a08e687f6f33ac2e1526da04dfd982e11b50d36 (diff) | |
download | penguin-new-tab-582870c12d9e1ec5b84882bee4db8dcd56b261a7.tar.gz penguin-new-tab-582870c12d9e1ec5b84882bee4db8dcd56b261a7.zip |
Diffstat (limited to 'app/components/WhoisChart.tsx')
-rw-r--r-- | app/components/WhoisChart.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/components/WhoisChart.tsx b/app/components/WhoisChart.tsx index a373e98..74bde6d 100644 --- a/app/components/WhoisChart.tsx +++ b/app/components/WhoisChart.tsx @@ -72,14 +72,14 @@ export default function UpdateChart() { dataKey="time" type="number" domain={["dataMin", "dataMax"]} - tickFormatter={(tick) => new Date(tick).toLocaleTimeString()} + tickFormatter={(tick) => ((d) => `${d.toLocaleDateString()} ${d.getHours().toString().padStart(2, '0')}:${d.getMinutes().toString().padStart(2, '0')}`)(new Date(tick))} stroke="rgba(var(--foreground), 0.6)" /> <YAxis stroke="rgba(var(--foreground), 0.6)" tickFormatter={(tick) => (tick === 0 ? "" : `${tick} hrs`)} /> - {uniqueNames.map((uniqueName, index) => ( + {uniqueNames.map((uniqueName, _index) => ( <Line key={uniqueName} type="linear" |