For example, the current last post is on "Community blog posts":
on https://www.vlent.nl/weblog/feed.atom ; its last post has :
<id>tag:www.vlent.nl,2014-09-28:/weblog/2014/09/28/how-we-use-
virtualenv-buildout-and-docker/</id>
<updated>2014-09-28T21:53:00Z</updated>
But on https://www.djangoproject.com/community/ the Feeds tell us :
<lastBuildDate>Sun, 28 Sep 2014 21:53:00 -0500</lastBuildDate>
As my batch works each hour from a crontab, I received this "news" more
than once.
It looks like this is the last build date of the entire Feeds "Community
blog posts" itself, but not the last update of the provider source
https://www.vlent.nl/weblog/feed.atom.
Regards
--
Ticket URL: <https://code.djangoproject.com/ticket/23566>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0
Comment:
Here is the logic for how the feed's `lastBuildDate` is generated:
https://github.com/django/django/blob/fe2afcd318493c933ab1191a5a64271869a1227f/django/utils/feedgenerator.py#L194-L209
I don't understand the issue. It looks like the two dates in your example
above are the same?
--
Ticket URL: <https://code.djangoproject.com/ticket/23566#comment:1>
Comment (by foxmask):
Hi,
the two date are different as one of them use a TIMEZONE (-0500) and not
the second one. I'm not a datetime expert but may be this should be handle
in the piece of code you linked above ?
--
Ticket URL: <https://code.djangoproject.com/ticket/23566#comment:2>
* version: 1.7 =>
* type: Uncategorized => Bug
* stage: Unreviewed => Accepted
Comment:
I guess we have timezone issues in the `feed_updated()` function of the
models.py file here:
https://github.com/django/djangoproject.com/tree/master/aggregator.
--
Ticket URL: <https://code.djangoproject.com/ticket/23566#comment:3>
Comment (by foxmask):
from the models.py I see here
https://github.com/django/djangoproject.com/blob/master/aggregator/models.py#L159-164,
on my side, I had to do this to handle the same behavior
https://github.com/foxmask/django-
th/blob/master/django_th/management/commands/fire_th.py#L36-43 but without
dropping the end of the date (by using [:6] if 'im not wrong) makes more
problem than it solves them.
--
Ticket URL: <https://code.djangoproject.com/ticket/23566#comment:4>
Comment (by timgraham):
Care to submit a pull request?
--
Ticket URL: <https://code.djangoproject.com/ticket/23566#comment:5>
* status: new => closed
* resolution: => duplicate
Comment:
Moved to https://github.com/django/djangoproject.com/issues/241.
--
Ticket URL: <https://code.djangoproject.com/ticket/23566#comment:6>