change some event datetime formatting

This commit is contained in:
2024-06-21 23:51:51 +02:00
parent 1097cd8b03
commit b51c737885
6 changed files with 30 additions and 18 deletions

View File

@ -3,7 +3,7 @@ import { Blocks } from "@/components/blocks/Blocks";
import Image from "@/components/general/Image";
import { graphql } from "@/gql";
import { NewsFragment } from "@/gql/graphql";
import { commonDateFormat, formatDate } from "@/lib/date";
import { compactDateFormat, formatDate } from "@/lib/date";
import { notFound } from "next/navigation";
export async function generateStaticParams() {
@ -67,7 +67,7 @@ export default async function Page({ params }: { params: { slug: string } }) {
)}
</figure>
)}
<p>{formatDate(news.firstPublishedAt, commonDateFormat)}</p>
<p>{formatDate(news.firstPublishedAt, compactDateFormat)}</p>
</section>
<section className="pageContent">
<Blocks blocks={news.body} />