Format_date has to support missing dates.

This commit is contained in:
jakedt 2014-03-25 18:01:50 -04:00
parent 8538455cef
commit 4e80f95012

View file

@ -96,6 +96,8 @@ def truthy_bool(param):
def format_date(date):
""" Output an RFC822 date format. """
if date is None:
return None
return formatdate(timegm(date.utctimetuple()))