diff --git a/reference/forms/types/options/_date_limitation.rst.inc b/reference/forms/types/options/_date_limitation.rst.inc new file mode 100644 index 00000000000..8a39d6f6b80 --- /dev/null +++ b/reference/forms/types/options/_date_limitation.rst.inc @@ -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 `_. \ No newline at end of file diff --git a/reference/forms/types/options/date_input.rst.inc b/reference/forms/types/options/date_input.rst.inc index 04c86da0135..89aa73bc432 100644 --- a/reference/forms/types/options/date_input.rst.inc +++ b/reference/forms/types/options/date_input.rst.inc @@ -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. \ No newline at end of file +this format. + +.. include:: /reference/forms/types/options/_date_limitation.rst.inc \ No newline at end of file diff --git a/reference/forms/types/options/date_widget.rst.inc b/reference/forms/types/options/date_widget.rst.inc index 8fc89e3d09e..50041e432c0 100644 --- a/reference/forms/types/options/date_widget.rst.inc +++ b/reference/forms/types/options/date_widget.rst.inc @@ -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 \ No newline at end of file