From 060c7172ace9beccc3ac769ed8cb9515ec05b833 Mon Sep 17 00:00:00 2001 From: Nick Mowen Date: Tue, 26 Sep 2023 09:19:53 -0600 Subject: [PATCH] Add time param to events --- web/src/routes/Events.jsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/src/routes/Events.jsx b/web/src/routes/Events.jsx index 1a692195b..c09a83caa 100644 --- a/web/src/routes/Events.jsx +++ b/web/src/routes/Events.jsx @@ -48,6 +48,7 @@ const monthsAgo = (num) => { export default function Events({ path, ...props }) { const apiHost = useApiHost(); + const timezone = useMemo(() => config.ui?.timezone || Intl.DateTimeFormat().resolvedOptions().timeZone, [config]); const [searchParams, setSearchParams] = useState({ before: null, after: null, @@ -55,6 +56,8 @@ export default function Events({ path, ...props }) { labels: props.labels ?? 'all', zones: props.zones ?? 'all', sub_labels: props.sub_labels ?? 'all', + time_range: '00:00,24:00', + timezone, favorites: props.favorites ?? 0, event: props.event, });