From ac004127b5e951df47b4ccfd29e5c7e2ab65b39b Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Sat, 10 May 2025 11:44:52 -0500 Subject: [PATCH] adjust date granularity for last recording time The api endpoint only returns granularity down to the day --- web/public/locales/en/common.json | 4 ++++ web/src/views/system/StorageMetrics.tsx | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/web/public/locales/en/common.json b/web/public/locales/en/common.json index 9532bcb69..56aa659e6 100644 --- a/web/public/locales/en/common.json +++ b/web/public/locales/en/common.json @@ -60,6 +60,10 @@ "12hour": "MMM d, h:mm aaa", "24hour": "MMM d, HH:mm" }, + "formattedTimestampMonthDayYear": { + "12hour": "MMM d, yyyy", + "24hour": "MMM d, yyyy" + }, "formattedTimestampMonthDayYearHourMinute": { "12hour": "MMM d yyyy, h:mm aaa", "24hour": "MMM d yyyy, HH:mm" diff --git a/web/src/views/system/StorageMetrics.tsx b/web/src/views/system/StorageMetrics.tsx index 2f41f2c92..2a7e98828 100644 --- a/web/src/views/system/StorageMetrics.tsx +++ b/web/src/views/system/StorageMetrics.tsx @@ -71,7 +71,7 @@ export default function StorageMetrics({ const timeFormat = config?.ui.time_format === "24hour" ? "24hour" : "12hour"; const format = useMemo(() => { - return t(`time.formattedTimestampMonthDayYearHourMinute.${timeFormat}`, { + return t(`time.formattedTimestampMonthDayYear.${timeFormat}`, { ns: "common", }); }, [t, timeFormat]);