From d556309a44fdb65b92fa73aa849be623690289c2 Mon Sep 17 00:00:00 2001 From: Matthias Althaus Date: Thu, 28 Aug 2014 11:33:44 +0200 Subject: [PATCH 1/2] Update datetime.rst Fixed "the the" typo. --- reference/forms/types/datetime.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reference/forms/types/datetime.rst b/reference/forms/types/datetime.rst index 7b0d0e089f5..d5621098db9 100644 --- a/reference/forms/types/datetime.rst +++ b/reference/forms/types/datetime.rst @@ -74,8 +74,8 @@ format **type**: ``string`` **default**: ``Symfony\Component\Form\Extension\Core\Type\DateTimeType::HTML5_FORMAT`` -If the ``widget`` option is set to ``single_text``, this option specifies the -the format of the input, i.e. how Symfony will interpret the given input +If the ``widget`` option is set to ``single_text``, this option specifies + the format of the input, i.e. how Symfony will interpret the given input as a datetime string. It defaults to the `RFC 3339`_ format which is used by the HTML5 ``datetime`` field. Keeping the default value will cause the field to be rendered as an ``input`` field with ``type="datetime"``. From 7c42e4b2324c9a0c073018d96549b8727a22f187 Mon Sep 17 00:00:00 2001 From: Matthias Althaus Date: Fri, 29 Aug 2014 10:17:15 +0200 Subject: [PATCH 2/2] Update datetime.rst --- reference/forms/types/datetime.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/forms/types/datetime.rst b/reference/forms/types/datetime.rst index d5621098db9..fc58493207f 100644 --- a/reference/forms/types/datetime.rst +++ b/reference/forms/types/datetime.rst @@ -75,7 +75,7 @@ format **type**: ``string`` **default**: ``Symfony\Component\Form\Extension\Core\Type\DateTimeType::HTML5_FORMAT`` If the ``widget`` option is set to ``single_text``, this option specifies - the format of the input, i.e. how Symfony will interpret the given input +the format of the input, i.e. how Symfony will interpret the given input as a datetime string. It defaults to the `RFC 3339`_ format which is used by the HTML5 ``datetime`` field. Keeping the default value will cause the field to be rendered as an ``input`` field with ``type="datetime"``.