diff --git a/components/details/details-content.tsx b/components/details/details-content.tsx index 912205d..cdbb94b 100644 --- a/components/details/details-content.tsx +++ b/components/details/details-content.tsx @@ -368,14 +368,13 @@ export default function DetailContent() { - {new Date(articleDetail?.publishedAt).toLocaleDateString( - "id-ID", - { - day: "numeric", - month: "long", - year: "numeric", - } - )} + {new Date( + articleDetail?.publishedAt ?? articleDetail?.createdAt + ).toLocaleDateString("id-ID", { + day: "numeric", + month: "long", + year: "numeric", + })}