From 5280bae040c1fa6ebcb8cf46101d6dd071e15ac0 Mon Sep 17 00:00:00 2001 From: Anang Yusman Date: Tue, 6 Jan 2026 14:17:20 +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 7d61db9..44efe17 100644 --- a/components/details/details-content.tsx +++ b/components/details/details-content.tsx @@ -268,14 +268,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", + })} in