diff --git a/src/components/Program.astro b/src/components/Program.astro index 80def62..45a073b 100644 --- a/src/components/Program.astro +++ b/src/components/Program.astro @@ -5,8 +5,11 @@ import ProgramCard from './ProgramCard.astro'; const { lang = 'no', data } = Astro.props as { lang?: Lang, data: any }; const t = translations[lang]; -const today = new Date(); -today.setHours(0, 0, 0, 0); +const now = new Date(); +const osloNow = new Date( + now.toLocaleString("en-US", { timeZone: "Europe/Oslo" }) +); +osloNow.setHours(0, 0, 0, 0); --- {data ? ( @@ -14,19 +17,33 @@ today.setHours(0, 0, 0, 0);