mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Add back date_format filter
This was not removed from the docs, so it should be supported for the foreseeable future.
This commit is contained in:
parent
a064a3e695
commit
266d13a665
1 changed files with 1 additions and 0 deletions
|
@ -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"):
|
||||
'''
|
||||
|
|
Loading…
Add table
Reference in a new issue