From 775889ab4b4d51a52417d0a69e3d146d90b8b4c7 Mon Sep 17 00:00:00 2001 From: Bai Xiaofeng Date: Mon, 23 May 2022 18:49:13 +0800 Subject: [PATCH] Update kie-server-parent/kie-server-services/kie-server-services-jbpm-ui/src/main/java/org/kie/server/services/jbpm/ui/form/render/AbstractFormRenderer.java Co-authored-by: Jan Stastny --- .../ui/form/render/AbstractFormRenderer.java | 20 ++++++------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/kie-server-parent/kie-server-services/kie-server-services-jbpm-ui/src/main/java/org/kie/server/services/jbpm/ui/form/render/AbstractFormRenderer.java b/kie-server-parent/kie-server-services/kie-server-services-jbpm-ui/src/main/java/org/kie/server/services/jbpm/ui/form/render/AbstractFormRenderer.java index 4b8a82bcc2..b58ff8b290 100644 --- a/kie-server-parent/kie-server-services/kie-server-services-jbpm-ui/src/main/java/org/kie/server/services/jbpm/ui/form/render/AbstractFormRenderer.java +++ b/kie-server-parent/kie-server-services/kie-server-services-jbpm-ui/src/main/java/org/kie/server/services/jbpm/ui/form/render/AbstractFormRenderer.java @@ -816,20 +816,12 @@ protected String appendExtractionExpression(String type, String name, String id, .append(id) .append("')"); } else if (isDate(type)) { - if (type.equals("datetime-local")) { - if (isShowTime) { - jsonTemplate.append("getDate('") - .append(id) - .append("',") - .append(FUNCTION_MAPPING.get(formFieldType)) - .append(") "); - } else { - jsonTemplate.append("getDateWithoutTime('") - .append(id) - .append("',") - .append(FUNCTION_MAPPING.get(formFieldType)) - .append(") "); - } + if (type.equals("datetime-local") && !showTime) { + jsonTemplate.append("getDateWithoutTime('") + .append(id) + .append("',") + .append(FUNCTION_MAPPING.get(formFieldType)) + .append(") "); } else { jsonTemplate.append("getDate('") .append(id)