From 21106571548bf45dca91266e96800b30b6fe9798 Mon Sep 17 00:00:00 2001 From: Anang Yusman Date: Tue, 21 Oct 2025 13:25:19 +0800 Subject: [PATCH] fix --- components/form/article/create-article-form.tsx | 2 +- components/form/article/edit-article-form.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/form/article/create-article-form.tsx b/components/form/article/create-article-form.tsx index a8fbe78..d920ed7 100644 --- a/components/form/article/create-article-form.tsx +++ b/components/form/article/create-article-form.tsx @@ -854,7 +854,7 @@ export default function CreateArticleForm() { variant="outline" > {startDateValue - ? startDateValue.toISOString().split("T")[0] + ? startDateValue.toLocaleDateString("en-CA") : "-"} diff --git a/components/form/article/edit-article-form.tsx b/components/form/article/edit-article-form.tsx index c3d7cf9..927c880 100644 --- a/components/form/article/edit-article-form.tsx +++ b/components/form/article/edit-article-form.tsx @@ -1070,7 +1070,7 @@ export default function EditArticleForm(props: { isDetail: boolean }) { variant="outline" > {startDateValue - ? startDateValue.toISOString().split("T")[0] + ? startDateValue.toLocaleDateString("en-CA") : "-"}