Skip to content

Use HTML datetime-local input with DateTimeField #748

@JacobsThierry

Description

@JacobsThierry

When using DateTimeField and rendering a template, the html tag generated look like this :

The type is "datetime" which does not mean anything in vanilla HTML. So the browser display the field as a text Field.
The type should be "datetime-local"

Tested with WTforms 3.0.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions