summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2017-12-30 14:19:43 -0500
committerTim Graham <timograham@gmail.com>2018-01-02 11:23:04 -0500
commitab7f4c330629f24f006a35729ee0d758711312fa (patch)
tree401b2b950fa96577e61cc7cc0132187e274ddfe0 /docs
parent0afffae4ecb660f2ecb94a756c2ab7729654ecf6 (diff)
Refs #28965 -- Deprecated unused django.utils.http.cookie_date().
Diffstat (limited to 'docs')
-rw-r--r--docs/internals/deprecation.txt2
-rw-r--r--docs/ref/utils.txt4
-rw-r--r--docs/releases/2.1.txt4
3 files changed, 10 insertions, 0 deletions
diff --git a/docs/internals/deprecation.txt b/docs/internals/deprecation.txt
index 248a0c642e..f601b035ca 100644
--- a/docs/internals/deprecation.txt
+++ b/docs/internals/deprecation.txt
@@ -31,6 +31,8 @@ details on these changes.
* ``django.contrib.gis.db.models.functions.ForceRHR`` will be removed.
+* ``django.utils.http.cookie_date()`` will be removed.
+
See the :ref:`Django 2.1 release notes <deprecated-features-2.1>` for more
details on these changes.
diff --git a/docs/ref/utils.txt b/docs/ref/utils.txt
index 03c9af0c46..d6127e3fed 100644
--- a/docs/ref/utils.txt
+++ b/docs/ref/utils.txt
@@ -682,6 +682,10 @@ escaping HTML.
.. function:: cookie_date(epoch_seconds=None)
+ .. deprecated:: 2.1
+
+ Use :func:`http_date` instead, which follows the latest RFC.
+
Formats the time to ensure compatibility with Netscape's cookie standard.
Accepts a floating point number expressed in seconds since the epoch in
diff --git a/docs/releases/2.1.txt b/docs/releases/2.1.txt
index e1947728d9..3c9fad8ca5 100644
--- a/docs/releases/2.1.txt
+++ b/docs/releases/2.1.txt
@@ -249,6 +249,10 @@ Miscellaneous
* The ``ForceRHR`` GIS function is deprecated in favor of the new
:class:`~django.contrib.gis.db.models.functions.ForcePolygonCW` function.
+* ``django.utils.http.cookie_date()`` is deprecated in favor of
+ :func:`~django.utils.http.http_date`, which follows the format of the latest
+ RFC.
+
.. _removed-features-2.1:
Features removed in 2.1