Skip to content

[Bug] datetime edit value #5916

@adriallongarriu

Description

@adriallongarriu

Bug report

What I did

I have a crud with a datetime input. On the create all ok but on edit the input force me to match the seconds of the value saved on create if i change the seconds the value is invalid and the form dont send.

CRUD::addField([
            'name' => 'publish_on',
            'label' => __('backend.events.publish'),
            'type' => 'datetime',
            'wrapperAttributes' => [
                'class' => 'form-group col-md-6',
            ],
        ]);

What I expected to happen

Change value and send the form.

What happened

If i try to edit the secons the input is invalid and i can't send the form and save new value.
Image

What I've already tried to fix it

I override the view datetime and add step="1" to the input

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions