8000 Add more explanations · symfony/symfony-docs@c5681bf · GitHub
[go: up one dir, main page]

Skip to content

Commit c5681bf

Browse files
committed
Add more explanations
1 parent b37bc78 commit c5681bf

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

reference/constraints/Timezone.rst

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,15 @@ identifiers to the ones that belong to that geographical zone:
119119
* ``\DateTimeZone::INDIAN``
120120
* ``\DateTimeZone::PACIFIC``
121121

122-
The special ``\DateTimeZone::ALL`` zone accepts any timezone.
122+
The special ``\DateTimeZone::ALL`` zone accepts any timezone excluding deprecated timezones.
123123

124-
countryCode
125-
~~~~~~~~~~~
124+
The special ``\DateTimeZone::ALL_WITH_BC`` zone accepts any timezone including deprecated timezones.
125+
126+
The special ``\DateTimeZone::PER_COUNTRY`` zone limits the timezones to a certain country. This zone
127+
value must be used in combination with the ``country_code`` option.
128+
129+
country_code
130+
~~~~~~~~~~~~
126131

127132
**type**: ``string`` **default**: ``null``
128133

0 commit comments

Comments
 (0)
0