Skip to content

Commit 3f5a2bb

Browse files
committed
minor #11402 Minor tweaks in the Timezone validator docs (javiereguiluz)
This PR was merged into the master branch. Discussion ---------- Minor tweaks in the Timezone validator docs Commits ------- 1c90ee5 Minor tweaks in the Timezone validator docs
2 parents 21f231f + 1c90ee5 commit 3f5a2bb

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

reference/constraints/Timezone.rst

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ string meant to contain a timezone identifier (e.g. ``America/New_York``):
3838
/**
3939
* @Assert\Timezone
4040
*/
41-
protected $timezone;
41+
protected $timezone;
4242
}
4343
4444
.. code-block:: yaml
@@ -125,12 +125,13 @@ identifiers to the ones that belong to that geographical zone:
125125
* ``\DateTimeZone::INDIAN``
126126
* ``\DateTimeZone::PACIFIC``
127127

128-
The special ``\DateTimeZone::ALL`` zone accepts any timezone excluding deprecated timezones.
129-
130-
The special ``\DateTimeZone::ALL_WITH_BC`` zone accepts any timezone including deprecated timezones.
128+
In addition, there are some special zone values:
131129

132-
The special ``\DateTimeZone::PER_COUNTRY`` zone limits the timezones to a certain country. This zone
133-
value must be used in combination with the ``countryCode`` option.
130+
* ``\DateTimeZone::ALL`` accepts any timezone excluding deprecated timezones;
131+
* ``\DateTimeZone::ALL_WITH_BC`` accepts any timezone including deprecated
132+
timezones;
133+
* ``\DateTimeZone::PER_COUNTRY`` restricts the valid timezones to a certain
134+
country (which is defined using the ``countryCode`` option).
134135

135136
countryCode
136137
~~~~~~~~~~~

0 commit comments

Comments
 (0)