File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff 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
135136countryCode
136137~~~~~~~~~~~
You can’t perform that action at this time.
0 commit comments