diff --git a/src/main/webapp/resources/js/base/base.js b/src/main/webapp/resources/js/base/base.js index 7419d679..8f4f8587 100644 --- a/src/main/webapp/resources/js/base/base.js +++ b/src/main/webapp/resources/js/base/base.js @@ -713,7 +713,11 @@ class FormFields { if (input.checked) obj[property] = value; } else { - obj[property] = value; + let dataFmtType = input.getAttribute("data-fmt-type"); + if (["day", "time"].includes(dataFmtType)) + obj[property] = value.replace(/-|:/gi, ""); + else + obj[property] = value; } // log(property, value, "radio" == input.type ? "radio" : "", input.checked ? "checked" : ""); });