mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-28 23:51:23 -07:00
Corrects default arg format used by datetime filter (#27612)
This ensures the default datetime format matches that of datetime.datetime. Docs updated to match as well.
This commit is contained in:
parent
3f85aa3abd
commit
d828449611
2 changed files with 3 additions and 3 deletions
|
@ -125,7 +125,7 @@ def to_bool(a):
|
|||
return False
|
||||
|
||||
|
||||
def to_datetime(string, format="%Y-%d-%m %H:%M:%S"):
|
||||
def to_datetime(string, format="%Y-%m-%d %H:%M:%S"):
|
||||
return datetime.strptime(string, format)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue