From c2da413522ccebdda8fc9c2990be9205079d565c Mon Sep 17 00:00:00 2001 From: Anang Yusman Date: Tue, 6 Jan 2026 10:44:08 +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 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", + })}