From 2b11b504943a7c15b02f9f7dc3e132f1ab382fcb Mon Sep 17 00:00:00 2001 From: leebj Date: Mon, 24 Jun 2024 15:46:30 +0900 Subject: [PATCH] =?UTF-8?q?fimsFormFields=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/webapp/resources/js/base/fimsFormFields.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main/webapp/resources/js/base/fimsFormFields.js b/src/main/webapp/resources/js/base/fimsFormFields.js index 80686ff5..e689b74c 100644 --- a/src/main/webapp/resources/js/base/fimsFormFields.js +++ b/src/main/webapp/resources/js/base/fimsFormFields.js @@ -45,15 +45,19 @@ class FimsFormFields extends FormFields { const fmtType = input.dataset.fmtType; switch (fmtType) { case 'dt' : - value = datetimeFormat.format(value); + value = datetimeFormat.parse(value); + value = datetimeFormat.format(value); break; case 'day' : - value = dateFormat.format(value); + value = dateFormat.parse(value); + value = dateFormat.format(value); break; case 'time' : + value = timeFormat.parse(value); value = timeFormat.format(value); break; case 'number' : + value = numberFormat.parse(value); value = numberFormat.format(value); break; default: