diff --git a/src/app/(routes)/blog/_components/article-snippet-card.tsx b/src/app/(routes)/blog/_components/article-snippet-card.tsx
index df41432..db2501c 100644
--- a/src/app/(routes)/blog/_components/article-snippet-card.tsx
+++ b/src/app/(routes)/blog/_components/article-snippet-card.tsx
@@ -1,4 +1,4 @@
-import { BlogPostType } from "@/app/_lib/contentful";
+import { BlogPostType, resolvePublishDateToIsoDate } from "@/app/_lib/contentful";
import { Text } from "@/app/_components/text";
import Link from "next/link";
import ContentfulImage from "../[slug]/_components/contentful-image";
@@ -18,7 +18,7 @@ export default function ArticleSnippetCard({
diff --git a/src/app/_lib/contentful.ts b/src/app/_lib/contentful.ts
index 0aec826..f4aec90 100644
--- a/src/app/_lib/contentful.ts
+++ b/src/app/_lib/contentful.ts
@@ -128,3 +128,7 @@ export function getReadingTime(content: Document): number {
const wordCount = words(rawText).length;
return Math.round(wordCount / averageReadingSpeed);
}
+
+export function resolvePublishDateToIsoDate(entry: BlogPostType): string {
+ return entry.fields.publishDate ?? entry.sys.createdAt;
+}