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]);