> Thanks for the reply Rob - yup it's a string all right, but the only
time *I* pass anything to rfc3399 is when I pass it a datetime.datetime
object.
Okay, but I meant the add_item method wants a datetime. From your
original post:
f.add_item(title=u"Hot dog today",
link = u"http://www.example.com/entries/1/",
pubdate = feedgenerator.rfc3339_date(when),
description = u"<p>sort it out son!</p>",
enclosure = myenclosure,
unique_id = None,
)
Looks like pubdate is supposed to be a datetime object, but clearly the
result of feedgenerator.rfc3339_date() is a string. Try this instead:
f.add_item(title=u"Hot dog today",
link = u"http://www.example.com/entries/1/",
pubdate = when,
description = u"<p>sort it out son!</p>",
enclosure = myenclosure,
unique_id = None,
)
Note that I haven't used this feed stuff yet, so I'm not sure if this
is ultimately what you want to do - but at least I think it will solve
the problem you're having!
-rob