adjust date granularity for last recording time

The api endpoint only returns granularity down to the day
This commit is contained in:
Josh Hawkins 2025-05-10 11:44:52 -05:00
parent 5322860f65
commit ac004127b5
2 changed files with 5 additions and 1 deletions

View File

@ -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"

View File

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