summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/utils.txt7
-rw-r--r--docs/releases/1.11.txt6
2 files changed, 11 insertions, 2 deletions
diff --git a/docs/ref/utils.txt b/docs/ref/utils.txt
index d97a0becb1..2fc868e143 100644
--- a/docs/ref/utils.txt
+++ b/docs/ref/utils.txt
@@ -397,7 +397,12 @@ https://web.archive.org/web/20110718035220/http://diveintomark.org/archives/2004
Returns the latest ``pubdate`` or ``updateddate`` for all items in the
feed. If no items have either of these attributes this returns the
- current date/time.
+ current UTC date/time.
+
+ .. versionchanged:: 1.11
+
+ In older versions, it returned the current date/time without any
+ timezone information.
``Enclosure``
-------------
diff --git a/docs/releases/1.11.txt b/docs/releases/1.11.txt
index 6a1f1e0241..969316785c 100644
--- a/docs/releases/1.11.txt
+++ b/docs/releases/1.11.txt
@@ -207,7 +207,11 @@ Database backend API
Miscellaneous
-------------
-* ...
+* If no items in the feed have a ``pubdate`` or ``updateddate`` attribute,
+ :meth:`SyndicationFeed.latest_post_date()
+ <django.utils.feedgenerator.SyndicationFeed.latest_post_date>` now returns
+ the current UTC date/time, instead of a datetime without any timezone
+ information.
.. _deprecated-features-1.11: