django-newswall icon indicating copy to clipboard operation
django-newswall copied to clipboard

WordPress ATOM & RSS feed timestamps produce naive datetimes

Open jheasly opened this issue 11 years ago • 2 comments

When the update_newswall script is run against WordPress feeds (RSS or Atom), the resulting timestamps come out as timezone naive so when pulling into a timezone-aware Django app you get

$ python manage.py update_newswall
/Users/foo/lib/python2.7/site-packages/django/db/models/fields/__init__.py:848: RuntimeWarning: DateTimeField Baz.timestamp received a naive datetime (2014-04-18 00:00:00) while time zone support is active.
  RuntimeWarning)

Is this more a feedparser.py parsing of WordPress feed timestamps issue?

jheasly avatar Apr 22 '14 00:04 jheasly

I have fixed this issue in my branch. https://github.com/sbaechler/django-newswall

sbaechler avatar Apr 23 '14 12:04 sbaechler

Just FYI, as I don't have a FeinCMS install, I wasn't able to test logic on this bit.

jheasly avatar Apr 24 '14 17:04 jheasly