From f31fbbae1ab1572e1637fc5ca9ae4bae66679294 Mon Sep 17 00:00:00 2001 From: Ketan Bhatt Date: Tue, 24 May 2016 22:20:20 +0530 Subject: Fixed #26653 -- Made SyndicationFeed.latest_post_date() return time in UTC. --- docs/ref/utils.txt | 7 ++++++- docs/releases/1.11.txt | 6 +++++- 2 files changed, 11 insertions(+), 2 deletions(-) (limited to 'docs') 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() + ` now returns + the current UTC date/time, instead of a datetime without any timezone + information. .. _deprecated-features-1.11: -- cgit v1.3