Skip to content

Commit

Permalink
OK-756: Lisätään aikavyöhyke next-intliin
Browse files Browse the repository at this point in the history
  • Loading branch information
heidilm committed Nov 25, 2024
1 parent e84fcf9 commit 5a4721a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion ovara-ui/src/app/components/localization-provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,15 @@ const LocalizationContent = ({
}) => {
const locale = lng ?? 'fi';
const messages = useFetchTranslations(locale) as IntlMessages;

const timeZone = 'Europe/Helsinki';

return (
<NextIntlClientProvider locale={locale} messages={messages}>
<NextIntlClientProvider
locale={locale}
messages={messages}
timeZone={timeZone}
>
{children}
</NextIntlClientProvider>
);
Expand Down

0 comments on commit 5a4721a

Please sign in to comment.