Skip to content

Commit 7dacc67

Browse files
committed
moved note into separate include. removed blockquote from PHP manual
1 parent d23b9b2 commit 7dacc67

File tree

3 files changed

+7
-12
lines changed

3 files changed

+7
-12
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: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,4 @@ your underlying object. Valid values are:
1414
The value that comes back from the form will also be normalized back into
1515
this format.
1616

17-
Note: If ``timestamp`` is used, ``DateType`` is limited to dates between
18-
Fri, 13 Dec 1901 20:45:54 GMT and Tue, 19 Jan 2038 03:14:07 GMT on 32bit
19-
systems. This is due to a `limitation in PHP itself <http://php.net/manual/en/function.date.php>`_:
20-
21-
The valid range of a timestamp is typically from Fri, 13 Dec 1901 20:45:54 GMT
22-
to Tue, 19 Jan 2038 03:14:07 GMT. (These are the dates that correspond
23-
to the minimum and maximum values for a 32-bit signed integer). However,
24-
before PHP 5.1.0 this range was limited from 01-01-1970 to 19-01-2038 on
25-
some systems (e.g. Windows).
17+
.. include:: /reference/forms/types/options/_date_limitation.rst.inc

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,4 @@ The basic way in which this field should be rendered. Can be one of the followin
1313
* ``single_text``: renders a single input of type text. User's input is validated
1414
based on the `format`_ option.
1515
16-
Note: If ``single_text`` 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>`_:
17-
18-
The valid range of a timestamp is typically from Fri, 13 Dec 1901 20:45:54 GMT to Tue, 19 Jan 2038 03:14:07 GMT. (These are the dates that correspond to the minimum and maximum values for a 32-bit signed integer). However, before PHP 5.1.0 this range was limited from 01-01-1970 to 19-01-2038 on some systems (e.g. Windows).
16+
.. include:: /reference/forms/types/options/_date_limitation.rst.inc

0 commit comments

Comments
 (0)