From a0749a2b2ea5ed0906843cfc6aab4edfb5684f2f Mon Sep 17 00:00:00 2001 From: Anang Yusman Date: Tue, 6 Jan 2026 14:16:56 +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 421ce68..df1fa41 100644 --- a/components/details/details-content.tsx +++ b/components/details/details-content.tsx @@ -333,14 +333,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