django-newswall
django-newswall copied to clipboard
WordPress ATOM & RSS feed timestamps produce naive datetimes
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?
I have fixed this issue in my branch. https://github.com/sbaechler/django-newswall
Just FYI, as I don't have a FeinCMS install, I wasn't able to test logic on this bit.