diff --git a/web/src/components/card/ReviewCard.tsx b/web/src/components/card/ReviewCard.tsx index c183f5e714..291201369f 100644 --- a/web/src/components/card/ReviewCard.tsx +++ b/web/src/components/card/ReviewCard.tsx @@ -52,7 +52,9 @@ export default function ReviewCard({ const [imgRef, imgLoaded, onImgLoad] = useImageLoaded(); const formattedDate = useFormattedTimestamp( 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, ); const isSelected = useMemo( diff --git a/web/src/components/filter/CalendarFilterButton.tsx b/web/src/components/filter/CalendarFilterButton.tsx index af9d998518..f16368d63f 100644 --- a/web/src/components/filter/CalendarFilterButton.tsx +++ b/web/src/components/filter/CalendarFilterButton.tsx @@ -32,7 +32,7 @@ export default function CalendarFilterButton({ const [open, setOpen] = useState(false); const selectedDate = useFormattedTimestamp( day == undefined ? 0 : day?.getTime() / 1000 + 1, - t("time.formattedTimestampOnlyMonthAndDay", { ns: "common" }), + t("time.formattedTimestampMonthDay", { ns: "common" }), ); const trigger = ( @@ -103,7 +103,7 @@ export function CalendarRangeFilterButton({ const selectedDate = useFormattedRange( range?.from == undefined ? 0 : range.from.getTime() / 1000 + 1, range?.to == undefined ? 0 : range.to.getTime() / 1000 - 1, - t("time.formattedTimestampOnlyMonthAndDay", { ns: "common" }), + t("time.formattedTimestampMonthDay", { ns: "common" }), ); const trigger = ( diff --git a/web/src/components/overlay/detail/ReviewDetailDialog.tsx b/web/src/components/overlay/detail/ReviewDetailDialog.tsx index 5c952ffce9..23666acb4b 100644 --- a/web/src/components/overlay/detail/ReviewDetailDialog.tsx +++ b/web/src/components/overlay/detail/ReviewDetailDialog.tsx @@ -96,8 +96,12 @@ export default function ReviewDetailDialog({ const formattedDate = useFormattedTimestamp( review?.start_time ?? 0, config?.ui.time_format == "24hour" - ? t("time.formattedTimestampWithYear.24hour", { ns: "common" }) - : t("time.formattedTimestampWithYear.12hour", { ns: "common" }), + ? t("time.formattedTimestampMonthDayYearHourMinute.24hour", { + ns: "common", + }) + : t("time.formattedTimestampMonthDayYearHourMinute.12hour", { + ns: "common", + }), config?.ui.timezone, ); diff --git a/web/src/components/player/PreviewThumbnailPlayer.tsx b/web/src/components/player/PreviewThumbnailPlayer.tsx index d7c0709ebd..da7fac0e2a 100644 --- a/web/src/components/player/PreviewThumbnailPlayer.tsx +++ b/web/src/components/player/PreviewThumbnailPlayer.tsx @@ -170,8 +170,8 @@ export default function PreviewThumbnailPlayer({ const formattedDate = useFormattedTimestamp( review.start_time, config?.ui.time_format == "24hour" - ? t("time.formattedTimestampExcludeSeconds.24hour", { ns: "common" }) - : t("time.formattedTimestampExcludeSeconds.12hour", { ns: "common" }), + ? t("time.formattedTimestampMonthDayHourMinute.24hour", { ns: "common" }) + : t("time.formattedTimestampMonthDayHourMinute.12hour", { ns: "common" }), config?.ui?.timezone, );