1. Gregory Petukho
  2. feedzilla
  3. Issues
Issue #4 new

DateTimeField issue when time zone support is active

affan2
created an issue

Occurs on running

./manage.py feedzilla_update

When

USE_TZ = True (in settings)

The full output

DEBUG:django.db.backends:(0.007) SELECT `feedzilla_filtertag`.`id`, `feedzilla_filtertag`.`value`, `feedzilla_filtertag`.`exact` FROM `feedzilla_filtertag`; args=()
DEBUG:django.db.backends:(0.000) SELECT `feedzilla_filterword`.`id`, `feedzilla_filterword`.`value`, `feedzilla_filterword`.`exact` FROM `feedzilla_filterword`; args=()
DEBUG:django.db.backends:(0.001) SELECT `feedzilla_feed`.`id`, `feedzilla_feed`.`title`, `feedzilla_feed`.`feed_url`, `feedzilla_feed`.`site_url`, `feedzilla_feed`.`active`, `feedzilla_feed`.`etag`, `feedzilla_feed`.`last_checked`, `feedzilla_feed`.`skip_filters`, `feedzilla_feed`.`author`, `feedzilla_feed`.`created`, `feedzilla_feed`.`post_count`, `feedzilla_feed`.`active_post_count` FROM `feedzilla_feed` WHERE `feedzilla_feed`.`active` = 1 ; args=(True,)
DEBUG:root:parsing http://www10.AECcafe.com/rss/CorpNews/news.xml
ERROR:root:None
ERROR:root:None
ERROR:root:None
ERROR:root:None
ERROR:root:None
ERROR:root:None
/usr/local/lib/python2.7/dist-packages/feedparser.py:364: DeprecationWarning: To avoid breaking existing software while fixing issue 310, a temporary mapping has been created from `updated_parsed` to `published_parsed` if `updated_parsed` doesn't exist. This fallback will be removed in a future version of feedparser.
  DeprecationWarning)

WARNING:py.warnings:/usr/local/lib/python2.7/dist-packages/feedparser.py:364: DeprecationWarning: To avoid breaking existing software while fixing issue 310, a temporary mapping has been created from `updated_parsed` to `published_parsed` if `updated_parsed` doesn't exist. This fallback will be removed in a future version of feedparser.
  DeprecationWarning)

/usr/local/lib/python2.7/dist-packages/feedparser.py:353: DeprecationWarning: To avoid breaking existing software while fixing issue 310, a temporary mapping has been created from `updated` to `published` if `updated` doesn't exist. This fallback will be removed in a future version of feedparser.
  "of feedparser.", DeprecationWarning)

WARNING:py.warnings:/usr/local/lib/python2.7/dist-packages/feedparser.py:353: DeprecationWarning: To avoid breaking existing software while fixing issue 310, a temporary mapping has been created from `updated` to `published` if `updated` doesn't exist. This fallback will be removed in a future version of feedparser.
  "of feedparser.", DeprecationWarning)

ERROR:root:None
DEBUG:django.db.backends:(0.000) SELECT `feedzilla_post`.`id`, `feedzilla_post`.`feed_id`, `feedzilla_post`.`title`, `feedzilla_post`.`link`, `feedzilla_post`.`summary`, `feedzilla_post`.`content`, `feedzilla_post`.`created`, `feedzilla_post`.`guid`, `feedzilla_post`.`active`, `feedzilla_post`.`rawtags` FROM `feedzilla_post` WHERE `feedzilla_post`.`guid` = 'f678cdb912bfa3a51acbfe33ee23f6a3db6a05d7' ; args=('f678cdb912bfa3a51acbfe33ee23f6a3db6a05d7',)
RuntimeWarning: DateTimeField received a naive datetime (2014-01-03 21:17:08) while time zone support is active.

Comments (2)

  1. Log in to comment