ensure export dates are timezone aware

This commit is contained in:
Josh Hawkins 2025-05-15 16:49:53 -05:00
parent 049280e631
commit d900cd4d50

View File

@ -406,12 +406,14 @@ function CustomTimeSelector({
config?.ui.time_format == "24hour" config?.ui.time_format == "24hour"
? t("time.formattedTimestamp.24hour", { ns: "common" }) ? t("time.formattedTimestamp.24hour", { ns: "common" })
: t("time.formattedTimestamp.12hour", { ns: "common" }), : t("time.formattedTimestamp.12hour", { ns: "common" }),
config?.ui.timezone,
); );
const formattedEnd = useFormattedTimestamp( const formattedEnd = useFormattedTimestamp(
endTime, endTime,
config?.ui.time_format == "24hour" config?.ui.time_format == "24hour"
? t("time.formattedTimestamp.24hour", { ns: "common" }) ? t("time.formattedTimestamp.24hour", { ns: "common" })
: t("time.formattedTimestamp.12hour", { ns: "common" }), : t("time.formattedTimestamp.12hour", { ns: "common" }),
config?.ui.timezone,
); );
const startClock = useMemo(() => { const startClock = useMemo(() => {