Skip to content

Commit

Permalink
minor #13730 Fix typo of HTML5 field type for DateTimeType (Levure)
Browse files Browse the repository at this point in the history
This PR was merged into the 3.4 branch.

Discussion
----------

Fix typo of HTML5 field type for DateTimeType

Changed the html5 input type for DateTimeType to datetime-local (which is the html5 input type) instead of the datetime input type.

- The **datetime** input type field has been removed from WHATWG HTML (whatwg/html#336)
- The **datetime-local** input type is the type used for rendering DateTimeType when html5 option is set to true.

Commits
-------

dd1749a Fix typo of HTML5 field type for DateTimeType
  • Loading branch information
javiereguiluz committed May 29, 2020
2 parents 11d1135 + dd1749a commit 3eb5d73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reference/forms/types/options/html5.rst.inc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
**type**: ``boolean`` **default**: ``true``

If this is set to ``true`` (the default), it'll use the HTML5 type (date, time
or datetime) to render the field. When set to ``false``, it'll use the text type.
or datetime-local) to render the field. When set to ``false``, it'll use the text type.

This is useful when you want to use a custom JavaScript datepicker, which
often requires a text type instead of an HTML5 type.

0 comments on commit 3eb5d73

Please sign in to comment.