From e53ddb92b4d6ef79c471edb3d857b0f67fce2499 Mon Sep 17 00:00:00 2001 From: dvelo <52332868+DeveloLongScript@users.noreply.github.com> Date: Sun, 18 Aug 2024 13:21:06 -0500 Subject: [PATCH] date -> time --- src/components/NewChart.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/components/NewChart.tsx b/src/components/NewChart.tsx index 34597f2..a3d9872 100644 --- a/src/components/NewChart.tsx +++ b/src/components/NewChart.tsx @@ -144,10 +144,8 @@ export function NewChart({ server }: { server: string }) { nameKey={activeChart} indicator="line" labelFormatter={(value) => { - return new Date(value).toLocaleDateString("en-US", { - month: "short", - day: "numeric", - year: "numeric", + return new Date(value).toLocaleTimeString("en-US", { + timeStyle: "short", }); }} />