Skip to content

Commit cae5951

Browse files
committed
minor #18475 [Form] Document a deprecation related to model_timezone (javiereguiluz)
This PR was merged into the 6.4 branch. Discussion ---------- [Form] Document a deprecation related to `model_timezone` Fixes #18463. Commits ------- aa39730 [Form] Document a deprecation related to model_timezone
2 parents 4b9a83d + aa39730 commit cae5951

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,10 @@
66
Timezone that the input data is stored in. This must be one of the
77
`PHP supported timezones`_.
88

9+
.. deprecated:: 6.4
10+
11+
Starting from Symfony 6.4, it's deprecated to pass ``DateTime`` or ``DateTimeImmutable``
12+
values to this form field with a different timezone than the one configured with
13+
the ``model_timezone`` option.
14+
915
.. _`PHP supported timezones`: https://www.php.net/manual/en/timezones.php

0 commit comments

Comments
 (0)