mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #46853 from terminalmage/date_format_filter
Add back date_format filter
This commit is contained in:
commit
9a47afc33b
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