From ba3d2e90f168e54217ecd7b0c763c96ace00fe78 Mon Sep 17 00:00:00 2001 From: VWSCoronaDashboard18 <93984341+VWSCoronaDashboard18@users.noreply.github.com> Date: Fri, 2 Dec 2022 15:39:08 +0100 Subject: [PATCH] Added middelOfDay integration --- packages/app/src/pages/landelijk/gedrag.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/app/src/pages/landelijk/gedrag.tsx b/packages/app/src/pages/landelijk/gedrag.tsx index caf669b4c2..bfc58de97c 100644 --- a/packages/app/src/pages/landelijk/gedrag.tsx +++ b/packages/app/src/pages/landelijk/gedrag.tsx @@ -1,5 +1,6 @@ import { Bevolking } from '@corona-dashboard/icons'; import { GetStaticPropsContext } from 'next'; +import { middleOfDayInSeconds } from '@corona-dashboard/common'; import { useMemo, useRef, useState } from 'react'; import { Box } from '~/components/base'; import { Markdown } from '~/components/markdown'; @@ -99,8 +100,8 @@ export default function BehaviorPage(props: StaticProps) .map((event) => ({ title: event[`message_title_${locale}`], description: event[`message_desc_${locale}`], - start: event.date_start_unix, - end: event.date_end_unix, + start: middleOfDayInSeconds(event.date_start_unix), + end: middleOfDayInSeconds(event.date_end_unix), })); return { currentTimelineEvents };