Skip to content

Commit f6bf5f2

Browse files
committed
Added input=datetime_immutable for DateType, TimeType, DateTimeType.
1 parent 6556f49 commit f6bf5f2

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

reference/forms/types/datetime.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ as a series of ``select`` boxes. When the placeholder value is a string,
8383
it will be used as the **blank value** of all select boxes::
8484

8585
use Symfony\Component\Form\Extension\Core\Type\DateTimeType;
86-
86+
8787
$builder->add('startDateTime', DateTimeType::class, array(
8888
'placeholder' => 'Select a value',
8989
));
@@ -92,7 +92,7 @@ Alternatively, you can use an array that configures different placeholder
9292
values for the year, month, day, hour, minute and second fields::
9393

9494
use Symfony\Component\Form\Extension\Core\Type\DateTimeType;
95-
95+
9696
$builder->add('startDateTime', DateTimeType::class, array(
9797
'placeholder' => array(
9898
'year' => 'Year', 'month' => 'Month', 'day' => 'Day',
@@ -125,6 +125,7 @@ on your underlying object. Valid values are:
125125

126126
* ``string`` (e.g. ``2011-06-05 12:15:00``)
127127
* ``datetime`` (a ``DateTime`` object)
128+
* ``datetime_immutable`` (a ``DateTimeImmutable`` object)
128129
* ``array`` (e.g. ``array(2011, 06, 05, 12, 15, 0)``)
129130
* ``timestamp`` (e.g. ``1307276100``)
130131

reference/forms/types/options/date_input.rst.inc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on your underlying object. Valid values are:
88

99
* ``string`` (e.g. ``2011-06-05``)
1010
* ``datetime`` (a ``DateTime`` object)
11+
* ``datetime_immutable`` (a ``DateTimeImmutable`` object)
1112
* ``array`` (e.g. ``array('year' => 2011, 'month' => 06, 'day' => 05)``)
1213
* ``timestamp`` (e.g. ``1307232000``)
1314

reference/forms/types/time.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ on your underlying object. Valid values are:
120120

121121
* ``string`` (e.g. ``12:17:26``)
122122
* ``datetime`` (a ``DateTime`` object)
123+
* ``datetime_immutable`` (a ``DateTimeImmutable`` object)
123124
* ``array`` (e.g. ``array('hour' => 12, 'minute' => 17, 'second' => 26)``)
124125
* ``timestamp`` (e.g. ``1307232000``)
125126

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy