Skip to content

Commit e0ebba8

Browse files
committed
Merge pull request symfony#2403 from joelclermont/issue_2266
document DateType limitations
2 parents 1a8d0dc + 7dacc67 commit e0ebba8

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.. caution::
2+
3+
If ``timestamp`` is used, ``DateType`` is limited to dates between
4+
Fri, 13 Dec 1901 20:45:54 GMT and Tue, 19 Jan 2038 03:14:07 GMT on 32bit
5+
systems. This is due to a `limitation in PHP itself <http://php.net/manual/en/function.date.php#refsect1-function.date-changelog>`_.

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,6 @@ your underlying object. Valid values are:
1212
* ``timestamp`` (e.g. ``1307232000``)
1313

1414
The value that comes back from the form will also be normalized back into
15-
this format.
15+
this format.
16+
17+
.. include:: /reference/forms/types/options/_date_limitation.rst.inc

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,5 @@ The basic way in which this field should be rendered. Can be one of the followin
1212

1313
* ``single_text``: renders a single input of type text. User's input is validated
1414
based on the `format`_ option.
15+
16+
.. include:: /reference/forms/types/options/_date_limitation.rst.inc

0 commit comments

Comments
 (0)