Format_date has to support missing dates.
This commit is contained in:
parent
8538455cef
commit
4e80f95012
1 changed files with 2 additions and 0 deletions
|
@ -96,6 +96,8 @@ def truthy_bool(param):
|
||||||
|
|
||||||
def format_date(date):
|
def format_date(date):
|
||||||
""" Output an RFC822 date format. """
|
""" Output an RFC822 date format. """
|
||||||
|
if date is None:
|
||||||
|
return None
|
||||||
return formatdate(timegm(date.utctimetuple()))
|
return formatdate(timegm(date.utctimetuple()))
|
||||||
|
|
||||||
|
|
||||||
|
|
Reference in a new issue