From 3692c33699dc8123502015d9d46ef0a58223d290 Mon Sep 17 00:00:00 2001 From: Kubosaka Date: Sun, 11 Aug 2024 16:54:10 +0900 Subject: [PATCH] =?UTF-8?q?[fix]=E4=BB=8A=E6=9C=88=E3=82=92=E6=AD=A3?= =?UTF-8?q?=E3=81=97=E3=81=8F=E5=87=BA=E5=8A=9B=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/purchasereports/UploadFileModal.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/view/next-project/src/components/purchasereports/UploadFileModal.tsx b/view/next-project/src/components/purchasereports/UploadFileModal.tsx index edb36d7f2..f1a4a24f7 100644 --- a/view/next-project/src/components/purchasereports/UploadFileModal.tsx +++ b/view/next-project/src/components/purchasereports/UploadFileModal.tsx @@ -77,7 +77,8 @@ const UplaodFileModal: FC = (props) => { // 日付取得 const date = new Date(); - const month = date.getMonth() < 10 ? '0' + date.getMonth() : date.getMonth(); + const thisMonth = date.getMonth() + 1; + const month = thisMonth < 10 ? '0' + thisMonth : thisMonth; const day = date.getDate() < 10 ? '0' + date.getDate() : date.getDate(); const formattedDate = `${date.getFullYear()}${month}${day}`; const randomStr = generateRandomString();