mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-04 04:27:42 +03:00
adjust date granularity for last recording time
The api endpoint only returns granularity down to the day
This commit is contained in:
parent
5322860f65
commit
ac004127b5
@ -60,6 +60,10 @@
|
|||||||
"12hour": "MMM d, h:mm aaa",
|
"12hour": "MMM d, h:mm aaa",
|
||||||
"24hour": "MMM d, HH:mm"
|
"24hour": "MMM d, HH:mm"
|
||||||
},
|
},
|
||||||
|
"formattedTimestampMonthDayYear": {
|
||||||
|
"12hour": "MMM d, yyyy",
|
||||||
|
"24hour": "MMM d, yyyy"
|
||||||
|
},
|
||||||
"formattedTimestampMonthDayYearHourMinute": {
|
"formattedTimestampMonthDayYearHourMinute": {
|
||||||
"12hour": "MMM d yyyy, h:mm aaa",
|
"12hour": "MMM d yyyy, h:mm aaa",
|
||||||
"24hour": "MMM d yyyy, HH:mm"
|
"24hour": "MMM d yyyy, HH:mm"
|
||||||
|
|||||||
@ -71,7 +71,7 @@ export default function StorageMetrics({
|
|||||||
|
|
||||||
const timeFormat = config?.ui.time_format === "24hour" ? "24hour" : "12hour";
|
const timeFormat = config?.ui.time_format === "24hour" ? "24hour" : "12hour";
|
||||||
const format = useMemo(() => {
|
const format = useMemo(() => {
|
||||||
return t(`time.formattedTimestampMonthDayYearHourMinute.${timeFormat}`, {
|
return t(`time.formattedTimestampMonthDayYear.${timeFormat}`, {
|
||||||
ns: "common",
|
ns: "common",
|
||||||
});
|
});
|
||||||
}, [t, timeFormat]);
|
}, [t, timeFormat]);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user