diff --git a/src/pages/strom/akcie/[[...params]].tsx b/src/pages/strom/akcie/[[...params]].tsx index 618f56ed..514b6949 100644 --- a/src/pages/strom/akcie/[[...params]].tsx +++ b/src/pages/strom/akcie/[[...params]].tsx @@ -7,6 +7,7 @@ import {Link} from '@/components/Clickable/Clickable' import {PageLayout} from '@/components/PageLayout/PageLayout' import {Markdown} from '@/components/StaticSites/Markdown' import {Competition, Event} from '@/types/api/generated/competition' +import {formatDate} from '@/utils/formatDate' import {Seminar} from '@/utils/useSeminarInfo' import styles from './competition.module.scss' @@ -46,8 +47,8 @@ const StaticPage: NextPage = ({

Nadchádzajúci ročník:

- {upcoming_or_current_event.start &&

Odkedy? {upcoming_or_current_event.start}

} - {upcoming_or_current_event.end &&

Dokedy? {upcoming_or_current_event.end}

} + {upcoming_or_current_event.start &&

Odkedy? {formatDate(upcoming_or_current_event.start)}

} + {upcoming_or_current_event.end &&

Dokedy? {formatDate(upcoming_or_current_event.end)}

} {upcoming_or_current_event.publication_set.length > 0 && (

Pozvánka @@ -57,7 +58,7 @@ const StaticPage: NextPage = ({

Registrácia prebieha do: - {upcoming_or_current_event.registration_link.end} + {formatDate(upcoming_or_current_event.registration_link.end)} Registračný formulár