Fixed bug with helpers.pretty_date()
.
This commit is contained in:
parent
094e77d06a
commit
a681b4f872
1 changed files with 6 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue