Merge pull request #46853 from terminalmage/date_format_filter

Add back date_format filter
This commit is contained in:
Nicole Thomas 2018-04-05 16:33:49 -04:00 committed by GitHub
commit 9a47afc33b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -60,6 +60,7 @@ def date_cast(date):
'Unable to parse {0}. Consider installing timelib'.format(date))
@jinja_filter('date_format')
@jinja_filter('strftime')
def strftime(date=None, format="%Y-%m-%d"):
'''