Fixed bug with helpers.pretty_date()
.
This commit is contained in:
parent
094e77d06a
commit
a681b4f872
|
@ -36,4 +36,10 @@ from edbob.pyramid.forms import pretty_datetime
|
|||
|
||||
|
||||
def pretty_date(date):
|
||||
"""
|
||||
Render a human-friendly date string.
|
||||
"""
|
||||
|
||||
if not date:
|
||||
return ''
|
||||
return date.strftime('%a %d %b %Y')
|
||||
|
|
Loading…
Reference in a new issue