From 40c79b9ae236fdcf67a50f817656ab0398a13e4d Mon Sep 17 00:00:00 2001 From: Anang Yusman Date: Tue, 6 Jan 2026 10:25:00 +0800 Subject: [PATCH] update --- components/details/details-content.tsx | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/components/details/details-content.tsx b/components/details/details-content.tsx index ee34d50..0bac399 100644 --- a/components/details/details-content.tsx +++ b/components/details/details-content.tsx @@ -380,14 +380,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", + })}