fix for parseDate function
claudiogg88 opened this issue · comments
this not working. set empty value.
"AnioMin" => [
'columnOptions' => ["class" => "col-md-3"],
'type' => Form::INPUT_WIDGET,
'widgetClass' => DateControl::class,
'options' => [
'displayFormat' => 'yyyy',
'widgetOptions' => [
'pluginOptions' => [
'startView' => "years",
'minViewMode' => 'years',
]
],
],
],
please fix parseDate function with :
if (vDateFlag === true && out.year) {
out.date = new Date(out.year,0, 1, out.hour, out.min, out.sec, 0);
return out.date;
}
thanks!