mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-05 04:57:42 +03:00
fix review
This commit is contained in:
parent
e1935ae087
commit
d218ca251f
@ -52,7 +52,9 @@ export default function ReviewCard({
|
|||||||
const [imgRef, imgLoaded, onImgLoad] = useImageLoaded();
|
const [imgRef, imgLoaded, onImgLoad] = useImageLoaded();
|
||||||
const formattedDate = useFormattedTimestamp(
|
const formattedDate = useFormattedTimestamp(
|
||||||
event.start_time,
|
event.start_time,
|
||||||
config?.ui.time_format == "24hour" ? "%H:%M" : "%I:%M %p",
|
config?.ui.time_format == "24hour"
|
||||||
|
? t("time.formattedTimestampHourMinute.24hour", { ns: "common" })
|
||||||
|
: t("time.formattedTimestampHourMinute.12hour", { ns: "common" }),
|
||||||
config?.ui.timezone,
|
config?.ui.timezone,
|
||||||
);
|
);
|
||||||
const isSelected = useMemo(
|
const isSelected = useMemo(
|
||||||
|
|||||||
@ -32,7 +32,7 @@ export default function CalendarFilterButton({
|
|||||||
const [open, setOpen] = useState(false);
|
const [open, setOpen] = useState(false);
|
||||||
const selectedDate = useFormattedTimestamp(
|
const selectedDate = useFormattedTimestamp(
|
||||||
day == undefined ? 0 : day?.getTime() / 1000 + 1,
|
day == undefined ? 0 : day?.getTime() / 1000 + 1,
|
||||||
t("time.formattedTimestampOnlyMonthAndDay", { ns: "common" }),
|
t("time.formattedTimestampMonthDay", { ns: "common" }),
|
||||||
);
|
);
|
||||||
|
|
||||||
const trigger = (
|
const trigger = (
|
||||||
@ -103,7 +103,7 @@ export function CalendarRangeFilterButton({
|
|||||||
const selectedDate = useFormattedRange(
|
const selectedDate = useFormattedRange(
|
||||||
range?.from == undefined ? 0 : range.from.getTime() / 1000 + 1,
|
range?.from == undefined ? 0 : range.from.getTime() / 1000 + 1,
|
||||||
range?.to == undefined ? 0 : range.to.getTime() / 1000 - 1,
|
range?.to == undefined ? 0 : range.to.getTime() / 1000 - 1,
|
||||||
t("time.formattedTimestampOnlyMonthAndDay", { ns: "common" }),
|
t("time.formattedTimestampMonthDay", { ns: "common" }),
|
||||||
);
|
);
|
||||||
|
|
||||||
const trigger = (
|
const trigger = (
|
||||||
|
|||||||
@ -96,8 +96,12 @@ export default function ReviewDetailDialog({
|
|||||||
const formattedDate = useFormattedTimestamp(
|
const formattedDate = useFormattedTimestamp(
|
||||||
review?.start_time ?? 0,
|
review?.start_time ?? 0,
|
||||||
config?.ui.time_format == "24hour"
|
config?.ui.time_format == "24hour"
|
||||||
? t("time.formattedTimestampWithYear.24hour", { ns: "common" })
|
? t("time.formattedTimestampMonthDayYearHourMinute.24hour", {
|
||||||
: t("time.formattedTimestampWithYear.12hour", { ns: "common" }),
|
ns: "common",
|
||||||
|
})
|
||||||
|
: t("time.formattedTimestampMonthDayYearHourMinute.12hour", {
|
||||||
|
ns: "common",
|
||||||
|
}),
|
||||||
config?.ui.timezone,
|
config?.ui.timezone,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@ -170,8 +170,8 @@ export default function PreviewThumbnailPlayer({
|
|||||||
const formattedDate = useFormattedTimestamp(
|
const formattedDate = useFormattedTimestamp(
|
||||||
review.start_time,
|
review.start_time,
|
||||||
config?.ui.time_format == "24hour"
|
config?.ui.time_format == "24hour"
|
||||||
? t("time.formattedTimestampExcludeSeconds.24hour", { ns: "common" })
|
? t("time.formattedTimestampMonthDayHourMinute.24hour", { ns: "common" })
|
||||||
: t("time.formattedTimestampExcludeSeconds.12hour", { ns: "common" }),
|
: t("time.formattedTimestampMonthDayHourMinute.12hour", { ns: "common" }),
|
||||||
config?.ui?.timezone,
|
config?.ui?.timezone,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user