ssoma-mda: Support UTC dates
authorW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 06:10:45 +0000 (22:10 -0800)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 06:10:45 +0000 (22:10 -0800)
commitf470f41d1dd954b60fbd0e54dea97596a1d10662
tree1fa4e18353c59224616a9d1d9d5c3d0264fc2a6f
parent4c508c4ad9902e935a65abc840a43acaa91ea061
ssoma-mda: Support UTC dates

For example:

  >>> datetime = email.utils.parsedate_to_datetime('Tue, 21 Dec 2010 03:52:23 -0000')
  >>> datetime.utcoffset() is None
  True

so without this case, we'll get:

  AttributeError: 'NoneType' object has no attribute 'seconds'
ssoma-mda