diff options
| author | Ketan Bhatt <ketanbhatt1006@gmail.com> | 2016-05-24 22:20:20 +0530 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-05-30 18:36:15 -0400 |
| commit | f31fbbae1ab1572e1637fc5ca9ae4bae66679294 (patch) | |
| tree | 7cdf28b1a88c40d57fc59ccf7f517184e41e7a7a /docs | |
| parent | 92107522ed3568740ec7c3597db50b5c3a6e84d3 (diff) | |
Fixed #26653 -- Made SyndicationFeed.latest_post_date() return time in UTC.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/utils.txt | 7 | ||||
| -rw-r--r-- | docs/releases/1.11.txt | 6 |
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: |
