8000 [Form] Remove timezone options from DateType and TimeType by jakzal · Pull Request #4417 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

[Form] Remove timezone options from DateType and TimeType #4417

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
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
6 changes: 0 additions & 6 deletions reference/forms/types/birthday.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ option defaults to 120 years ago to the current year.
| | - `empty_value`_ |
| | - `format`_ |
| | - `input`_ |
| | - `model_timezone`_ |
| | - `months`_ |
| | - `view_timezone`_ |
| | - `widget`_ |
| | |
| | from the :doc:`form </reference/forms/types/form>` type: |
Expand Down Expand Up @@ -72,12 +70,8 @@ These options inherit from the :doc:`date </reference/forms/types/date>` type:

.. include:: /reference/forms/types/options/date_input.rst.inc

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

.. include:: /reference/forms/types/options/months.rst.inc

.. include:: /reference/forms/types/options/view_timezone.rst.inc

.. include:: /reference/forms/types/options/date_widget.rst.inc

These options inherit from the :doc:`form </reference/forms/types/form>` type:
Expand Down
11 changes: 5 additions & 6 deletions reference/forms/types/date.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ The underlying data used for this field type can be a ``DateTime`` object,
a string, a timestamp or an array. As long as the `input`_ option is set
correctly, the field will take care of all of the details.

.. note::

In case of ``DateTime`` the timezone is ignored.
Only year, month and day are used.

The field can be rendered as a single text box, three text boxes (month,
day, and year) or three select boxes (see the `widget`_ option).

Expand All @@ -23,9 +28,7 @@ day, and year) or three select boxes (see the `widget`_ option).
| | - `empty_value`_ |
| | - `format`_ |
| | - `input`_ |
| | - `model_timezone`_ |
| | - `months`_ |
| | - `view_timezone`_ |
| | - `widget`_ |
| | - `years`_ |
+----------------------+-----------------------------------------------------------------------------+
Expand Down Expand Up @@ -109,12 +112,8 @@ Alternatively, you can specify a string to be displayed for the "blank" value::

.. include:: /reference/forms/types/options/date_input.rst.inc

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

.. include:: /reference/forms/types/options/months.rst.inc

.. include:: /reference/forms/types/options/view_timezone.rst.inc

.. include:: /reference/forms/types/options/date_widget.rst.inc

.. include:: /reference/forms/types/options/years.rst.inc
Expand Down
11 changes: 5 additions & 6 deletions reference/forms/types/time.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ This can be rendered as a text field, a series of text fields (e.g. hour,
minute, second) or a series of select fields. The underlying data can be stored
as a ``DateTime`` object, a string, a timestamp or an array.

.. note::

In case of ``DateTime`` the timezone is ignored.
Only hour, minutes and seconds are used.

+----------------------+-----------------------------------------------------------------------------+
| Underlying Data Type | can be ``DateTime``, string, timestamp, or array (see the ``input`` option) |
+----------------------+-----------------------------------------------------------------------------+
Expand All @@ -19,9 +24,7 @@ as a ``DateTime`` object, a string, a timestamp or an array.
| | - `hours`_ |
| | - `input`_ |
| | - `minutes`_ |
| | - `model_timezone`_ |
| | - `seconds`_ |
| | - `view_timezone`_ |
| | - `widget`_ |
| | - `with_minutes`_ |
| | - `with_seconds`_ |
Expand Down Expand Up @@ -99,12 +102,8 @@ this format.

.. include:: /reference/forms/types/options/minutes.rst.inc

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

.. include:: /reference/forms/types/options/seconds.rst.inc

.. include:: /reference/forms/types/options/view_timezone.rst.inc

widget
~~~~~~

Expand Down
0