Fixed bug with helpers.pretty_date().

This commit is contained in:
Lance Edgar 2013-07-05 10:52:47 -07:00
parent 094e77d06a
commit a681b4f872

View file

@ -36,4 +36,10 @@ from edbob.pyramid.forms import pretty_datetime
def pretty_date(date): def pretty_date(date):
"""
Render a human-friendly date string.
"""
if not date:
return ''
return date.strftime('%a %d %b %Y') return date.strftime('%a %d %b %Y')