mirror of
https://github.com/django/django.git
synced 2025-08-03 02:23:12 +00:00
Fixed #26653 -- Made SyndicationFeed.latest_post_date() return time in UTC.
This commit is contained in:
parent
92107522ed
commit
f31fbbae1a
4 changed files with 24 additions and 7 deletions
|
@ -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``
|
||||
-------------
|
||||
|
|
|
@ -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:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue