Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 06c28fb

Browse filesBrowse files
committed
minor #10434 clarify the datetime format option (xabbuh)
This PR was merged into the 2.8 branch. Discussion ---------- clarify the datetime format option Commits ------- ff33ed2 clarify the datetime format option
2 parents 5edc033 + ff33ed2 commit 06c28fb
Copy full SHA for 06c28fb

File tree

Expand file treeCollapse file tree

1 file changed

+5
-5
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-5
lines changed

‎reference/forms/types/datetime.rst

Copy file name to clipboardExpand all lines: reference/forms/types/datetime.rst
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,10 @@ format
112112

113113
If the ``widget`` option is set to ``single_text``, this option specifies
114114
the format of the input, i.e. how Symfony will interpret the given input
115-
as a datetime string. It defaults to the `RFC 3339`_ format which is used
116-
by the HTML5 ``datetime`` field. Keeping the default value will cause the
117-
field to be rendered as an ``input`` field with ``type="datetime"``. For
118-
more information on valid formats, see `Date/Time Format Syntax`_.
115+
as a datetime string. It defaults to the `datetime local`_ format which is
116+
used by the HTML5 ``datetime-local`` field. Keeping the default value will
117+
cause the field to be rendered as an ``input`` field with ``type="datetime-local"``.
118+
For more information on valid formats, see `Date/Time Format Syntax`_.
119119

120120
.. include:: /reference/forms/types/options/hours.rst.inc
121121

@@ -221,5 +221,5 @@ Field Variables
221221
| | | contains the input type to use (``datetime``, ``date`` or ``time``). |
222222
+----------+------------+----------------------------------------------------------------------+
223223

224-
.. _`RFC 3339`: https://tools.ietf.org/html/rfc3339
224+
.. _`datetime local`: http://w3c.github.io/html-reference/datatypes.html#form.data.datetime-local
225225
.. _`Date/Time Format Syntax`: http://userguide.icu-project.org/formatparse/datetime#TOC-Date-Time-Format-Syntax

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.