8000 [Form] Document a deprecation related to model_timezone · symfony/symfony-docs@aa39730 · GitHub
[go: up one dir, main page]

Skip to content

Commit aa39730

Browse files
committed
[Form] Document a deprecation related to model_timezone
1 parent 4b9a83d commit aa39730

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)
0