From dc96661182630dc84f0eb565b8fc6444b90c275c Mon Sep 17 00:00:00 2001 From: HichamELBSI Date: Fri, 21 Jan 2022 15:28:18 +0100 Subject: [PATCH] Fix datepicker format Signed-off-by: HichamELBSI --- .../core/helper-plugin/lib/src/components/GenericInput/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/helper-plugin/lib/src/components/GenericInput/index.js b/packages/core/helper-plugin/lib/src/components/GenericInput/index.js index c5d3cab39c..f90994ccec 100644 --- a/packages/core/helper-plugin/lib/src/components/GenericInput/index.js +++ b/packages/core/helper-plugin/lib/src/components/GenericInput/index.js @@ -167,7 +167,7 @@ const GenericInput = ({ hint={hint} name={name} onChange={date => { - const formattedDate = date.toISOString(); + const formattedDate = date.toISOString().split('T')[0]; onChange({ target: { name, value: formattedDate, type } }); }}