Fix date parsing of each item
1 files changed, 4 insertions(+), 2 deletions(-) M feed2maildir/converter.py
M feed2maildir/converter.py +4 -2
@@ 189,9 189,11 @@ Content-Type: text/plain def compose(self, title, post): """Compose the mail using the tempate""" try: # to get the update/publish time from the post - updated = post.updated - except: # the property is not set, use now() + updated = dateutil.parser.parse(post.updated) + except ValueError: updated = datetime.datetime.now() + + updated = updated.strftime('%a, %d %b %Y %H:%M:%S %Z') desc = '' if not self.links: if self.strip: