8000 Update timezone.rst · symfony/symfony-docs@de490ca · GitHub
[go: up one dir, main page]

Skip to content

Commit de490ca

Browse files
committed
Update timezone.rst
1 parent ab53d29 commit de490ca

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

reference/forms/types/timezone.rst

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ manually, but then you should just use the ``ChoiceType`` directly.
1717
+-------------+------------------------------------------------------------------------+
1818
| Rendered as | can be various tags (see :ref:`forms-reference-choice-tags`) |
1919
+-------------+------------------------------------------------------------------------+
20+
| Options | - `input`_ |
21+
| | - `regions`_ |
22+
+-------------+------------------------------------------------------------------------+
2023
| Overridden | - `choices`_ |
2124
| options | |
2225
+-------------+------------------------------------------------------------------------+
@@ -45,6 +48,27 @@ manually, but then you should just use the ``ChoiceType`` directly.
4548
| Class | :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\TimezoneType` |
4649
+-------------+------------------------------------------------------------------------+
4750

51+
Fields Options
52+
--------------
53+
54+
input
55+
~~~~~
56+
57+
**type**: ``string`` **default**: ``string``
58+
59+
The format of the *input* data - i.e. the format that the timezone is stored
60+
on your underlying object. Valid values are:
61+
62+
* ``string`` (e.g. ``America/New_York``)
63+
* ``datetimezone`` (a ``DateTimeZone`` object)
64+
65+
regions
66+
~~~~~~~
67+
68+
**type**: ``int`` **default**: ``DateTimeZone::ALL``
69+
70+
The available regions in the timezone choice list. For example: ``DateTimeZone::AMERICA | DateTimeZone::EUROPE``
71+
4872
Overridden Options
4973
------------------
5074

0 commit comments

Comments
 (0)
0