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() {
67
67
return (strtotime ($ date ) != '' ) ? $ date : null ;
68
68
}
69
69
70
+ public function prepareQuestionInputForTarget ($ input ) {
71
+ return Toolbox::addslashes_deep (Html::convDate ($ input ));
72
+ }
73
+
70
74
public function getAnswer () {
71
75
return Html::convDate ($ this ->getValue ());
72
76
}
Original file line number Diff line number Diff line change @@ -71,6 +71,10 @@ public function getAnswer() {
71
71
return Html::convDateTime ($ this ->getValue ());
72
72
}
73
73
74
+ public function prepareQuestionInputForTarget ($ input ) {
75
+ return Toolbox::addslashes_deep (Html::convDateTime ($ input ));
76
+ }
77
+
74
78
public function isValid ($ value ) {
75
79
// If the field is required it can't be empty
76
80
if ($ this ->isRequired () && (strtotime ($ value ) == '' )) {
You can’t perform that action at this time.
0 commit comments