Thanks, am using SQLite3. I think it's better to set everything to
offset-naive too. I did so by doing this:
rss.py:
class RssFeed(Base):
...
latestpost = Column(DateTime)
tasks.py:
pub_time = parse(post.published)
*pub_time_naive = pub_time.rep
On Aug 2, 2014, at 5:00 PM, Michael wrote:
> TypeError: can't compare offset-naive and offset-aware datetimes
>
>
> I'm comparing the date of the rss feed items published date with the
> latestpost of the rss feed. I ensure that the dates generated have pytz.UTC()
> added. Note the actual is
hi all, I'm getting a "TypeError: can't compare offset-naive and
offset-aware datetimes" when attempting to update a database table value(in
a celery task), even though I'm pretty sure both dates in question are
offset-aware.
here is the stack trace of the issue:
[2014-08-02 12:10:52,264: ERRO