From 9392851ef72c695d80a4c556566a60e2cc48f3ef Mon Sep 17 00:00:00 2001 From: Dag Wieers Date: Sat, 28 May 2016 13:31:44 +0200 Subject: [PATCH] Format BIOS date string like on Linux --- windows/setup.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windows/setup.ps1 b/windows/setup.ps1 index 37dcf19f1c9..8465142b4a7 100644 --- a/windows/setup.ps1 +++ b/windows/setup.ps1 @@ -83,7 +83,7 @@ Set-Attr $result.ansible_facts "ansible_interfaces" $formattednetcfg Set-Attr $result.ansible_facts "ansible_architecture" $win32_os.OSArchitecture # FIXME: Reformat the date to MM/DD/YEAR format -Set-Attr $result.ansible_facts "ansible_bios_date" $win32_bios.ReleaseDate +Set-Attr $result.ansible_facts "ansible_bios_date" $win32_bios.ReleaseDate.ToString("MM/dd/yyyy") Set-Attr $result.ansible_facts "ansible_bios_version" $win32_bios.SMBIOSBIOSVersion Set-Attr $result.ansible_facts "ansible_hostname" $env:COMPUTERNAME Set-Attr $result.ansible_facts "ansible_fqdn" "$([System.Net.Dns]::GetHostByName((hostname)).HostName)"