From 5453d1e959982248fa90fbdef5fd4b3349c1e8dc Mon Sep 17 00:00:00 2001 From: "jhawkesworth@users.noreply.github.com" Date: Thu, 26 Nov 2015 08:58:34 +0000 Subject: [PATCH] Fix for 13315 - minute now included in ansible_date_time on windows hosts --- lib/ansible/modules/windows/setup.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ansible/modules/windows/setup.ps1 b/lib/ansible/modules/windows/setup.ps1 index 4d163c7ec26..b31e76684b4 100644 --- a/lib/ansible/modules/windows/setup.ps1 +++ b/lib/ansible/modules/windows/setup.ps1 @@ -68,6 +68,7 @@ Set-Attr $date "year" (Get-Date -format yyyy) Set-Attr $date "month" (Get-Date -format MM) Set-Attr $date "day" (Get-Date -format dd) Set-Attr $date "hour" (Get-Date -format HH) +Set-Attr $date "minute" (Get-Date -format mm) Set-Attr $date "iso8601" (Get-Date -format s) Set-Attr $result.ansible_facts "ansible_date_time" $date