From fd5d01bc03e24d050a62b35ffcbd053f24cfa71a Mon Sep 17 00:00:00 2001 From: rdbsolutions Date: Fri, 3 Jan 2025 17:28:50 +0000 Subject: [PATCH] rep defect 8 --- components/elements/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/elements/index.js b/components/elements/index.js index 42284bde..7f000d7c 100644 --- a/components/elements/index.js +++ b/components/elements/index.js @@ -1867,7 +1867,8 @@ const RenderFileUpload = (field) => { let month = repDate.getMonth() + 1; let year = repDate.getFullYear(); - const pdfFileNameDateStamp = year + "-" + month + "-" + day; + const pdfFileNameDateStamp = + year + "-" + ("0" + month).slice(-2) + "-" + ("0" + day).slice(-2); switch (docCode) { case "000000":