diff options
author | Arthur Kepler <dev@arthurk.com> | 2017-08-07 11:33:25 -0700 |
---|---|---|
committer | Matt Davis <nitzmahone@users.noreply.github.com> | 2017-08-07 11:33:25 -0700 |
commit | d828449611ddd44fef5bc1a2e69ae8a1cac431f2 (patch) | |
tree | 490e9ed946a10886acc4c203c12274b47aa51807 /lib/ansible | |
parent | 3f85aa3abd7ffa7e6533af1dd3e070a1f776701f (diff) | |
download | ansible-d828449611ddd44fef5bc1a2e69ae8a1cac431f2.tar.gz |
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.
Diffstat (limited to 'lib/ansible')
-rw-r--r-- | lib/ansible/plugins/filter/core.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ansible/plugins/filter/core.py b/lib/ansible/plugins/filter/core.py index 4d7b2b25db..e3e01c9d67 100644 --- a/lib/ansible/plugins/filter/core.py +++ b/lib/ansible/plugins/filter/core.py @@ -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) |