From 5db71d87a1f7ff24bb0937164d315f2d968a35ae Mon Sep 17 00:00:00 2001 From: Max Chopart Date: Thu, 7 Dec 2023 13:01:56 +0100 Subject: [PATCH] [New #26] Add parameterization for date picker format --- js/components/record/RecordForm.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/js/components/record/RecordForm.js b/js/components/record/RecordForm.js index d1d245eb..74d77864 100644 --- a/js/components/record/RecordForm.js +++ b/js/components/record/RecordForm.js @@ -114,6 +114,13 @@ class RecordForm extends React.Component { ...this._getUsersOptions(), ...this._getIconsOptions() } + const componentsOptions= { + dateTimeAnswer: { + dateFormat: "dd-MM-yy", + timeFormat: "HH:mm", + dateTimeFormat: "dd-MM-yy HH:mm:ss", + }, + } if (this.props.formgen.status === ACTION_STATUS.ERROR) { return