File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,10 @@ public function getValue() {
6767 return (strtotime ($ date ) != '' ) ? $ date : null ;
6868 }
6969
70+ public function prepareQuestionInputForTarget ($ input ) {
71+ return Toolbox::addslashes_deep (Html::convDate ($ input ));
72+ }
73+
7074 public function getAnswer () {
7175 return Html::convDate ($ this ->getValue ());
7276 }
Original file line number Diff line number Diff line change @@ -71,6 +71,10 @@ public function getAnswer() {
7171 return Html::convDateTime ($ this ->getValue ());
7272 }
7373
74+ public function prepareQuestionInputForTarget ($ input ) {
75+ return Toolbox::addslashes_deep (Html::convDateTime ($ input ));
76+ }
77+
7478 public function isValid ($ value ) {
7579 // If the field is required it can't be empty
7680 if ($ this ->isRequired () && (strtotime ($ value ) == '' )) {
You can’t perform that action at this time.
0 commit comments