Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions reference/forms/types/birthday.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ option defaults to 120 years ago to the current year.
| | - `placeholder`_ |
| | - `format`_ |
| | - `input`_ |
| | - `model_timezone`_ |
| | - `model_timezone`_ (deprecated as of 2.6) |
| | - `months`_ |
| | - `view_timezone`_ |
| | - `view_timezone`_ (deprecated as of 2.6) |
| | - `widget`_ |
| | |
| | from the :doc:`form </reference/forms/types/form>` type: |
Expand Down
4 changes: 2 additions & 2 deletions reference/forms/types/date.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ day, and year) or three select boxes (see the `widget`_ option).
| | - `format`_ |
| | - `html5`_ |
| | - `input`_ |
| | - `model_timezone`_ |
| | - `model_timezone`_ (deprecated as of 2.6) |
| | - `months`_ |
| | - `view_timezone`_ |
| | - `view_timezone`_ (deprecated as of 2.6) |
| | - `widget`_ |
| | - `years`_ |
+----------------------+-----------------------------------------------------------------------------+
Expand Down
6 changes: 6 additions & 0 deletions reference/forms/types/options/model_timezone.rst.inc
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
model_timezone
~~~~~~~~~~~~~~

.. caution::

The ``model_timezone`` option has been deprecated and will be removed
in 3.0. If you pass `DateTime` instances as data to the form type, its
timezone is ignored.

**type**: ``string`` **default**: system default timezone

Timezone that the input data is stored in. This must be one of the
Expand Down
6 changes: 6 additions & 0 deletions reference/forms/types/options/view_timezone.rst.inc
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
view_timezone
~~~~~~~~~~~~~

.. caution::

The ``view_timezone`` option has been deprecated and will be removed
in 3.0. If you pass `DateTime` instances as data to the form type, its
timezone is ignored.

**type**: ``string`` **default**: system default timezone

Timezone for how the data should be shown to the user (and therefore also
Expand Down
4 changes: 2 additions & 2 deletions reference/forms/types/time.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ as a ``DateTime`` object, a string, a timestamp or an array.
| | - `html5`_ |
| | - `input`_ |
| | - `minutes`_ |
| | - `model_timezone`_ |
| | - `model_timezone`_ (deprecated as of 2.6) |
| | - `seconds`_ |
| | - `view_timezone`_ |
| | - `view_timezone`_ (deprecated as of 2.6) |
| | - `widget`_ |
| | - `with_minutes`_ |
| | - `with_seconds`_ |
Expand Down