Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WordPress ATOM & RSS feed timestamps produce naive datetimes #7

Open
jheasly opened this issue Apr 22, 2014 · 2 comments
Open

WordPress ATOM & RSS feed timestamps produce naive datetimes #7

jheasly opened this issue Apr 22, 2014 · 2 comments

Comments

@jheasly
Copy link

jheasly commented Apr 22, 2014

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?

@sbaechler
Copy link

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

@jheasly
Copy link
Author

jheasly commented Apr 24, 2014

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants