Skip to content

fix for parseDate function #19

Closed
Closed
@claudiogg88

Description

@claudiogg88

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!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions