diff --git a/components/details/details-content.tsx b/components/details/details-content.tsx index df1fa41..f1e81b1 100644 --- a/components/details/details-content.tsx +++ b/components/details/details-content.tsx @@ -82,7 +82,7 @@ export default function DetailContent() { const [diseId, setDiseId] = useState(0); const [thumbnailImg, setThumbnailImg] = useState([]); const [selectedMainImage, setSelectedMainImage] = useState( - null + null, ); const [selectedIndex, setSelectedIndex] = useState(0); @@ -332,16 +332,22 @@ export default function DetailContent() { - - - {new Date( - articleDetail?.publishedAt ?? articleDetail?.createdAt - ).toLocaleDateString("id-ID", { + {new Date( + articleDetail?.publishedAt ?? articleDetail?.createdAt, + ) + .toLocaleString("id-ID", { day: "numeric", month: "long", year: "numeric", - })} - + hour: "2-digit", + minute: "2-digit", + hour12: false, + timeZone: "Asia/Jakarta", + }) + .replace("pukul ", "")}{" "} + WIB + in {articleDetail?.categories?.[0]?.title} @@ -509,7 +515,7 @@ export default function DetailContent() {
@@ -765,7 +771,7 @@ export default function DetailContent() { day: "2-digit", month: "long", year: "numeric", - } + }, )} 💬 0 diff --git a/components/landing-page/footer.tsx b/components/landing-page/footer.tsx index fecaef6..ae2fddd 100644 --- a/components/landing-page/footer.tsx +++ b/components/landing-page/footer.tsx @@ -8,11 +8,14 @@ export default function Footer() {