Skip to content

document DateType limitations #2403

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

Merged
merged 3 commits into from
Mar 31, 2013
Merged
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
5 changes: 5 additions & 0 deletions reference/forms/types/options/_date_limitation.rst.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.. caution::

If ``timestamp`` is used, ``DateType`` is limited to dates between
Fri, 13 Dec 1901 20:45:54 GMT and Tue, 19 Jan 2038 03:14:07 GMT on 32bit
systems. This is due to a `limitation in PHP itself <http://php.net/manual/en/function.date.php#refsect1-function.date-changelog>`_.
4 changes: 3 additions & 1 deletion reference/forms/types/options/date_input.rst.inc
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@ your underlying object. Valid values are:
* ``timestamp`` (e.g. ``1307232000``)

The value that comes back from the form will also be normalized back into
this format.
this format.

.. include:: /reference/forms/types/options/_date_limitation.rst.inc
2 changes: 2 additions & 0 deletions reference/forms/types/options/date_widget.rst.inc
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ The basic way in which this field should be rendered. Can be one of the followin

* ``single_text``: renders a single input of type text. User's input is validated
based on the `format`_ option.

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