From 0c96863ec68b8b559bbc07cb3952f1cbaf4287c6 Mon Sep 17 00:00:00 2001 From: Gianluca Date: Tue, 24 Apr 2018 03:30:03 +0200 Subject: [PATCH] Fix for win_get_url module (#39152) --- lib/ansible/modules/windows/win_get_url.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/windows/win_get_url.ps1 b/lib/ansible/modules/windows/win_get_url.ps1 index 7047f8a7dad..1cf4ef5d0fb 100644 --- a/lib/ansible/modules/windows/win_get_url.ps1 +++ b/lib/ansible/modules/windows/win_get_url.ps1 @@ -71,7 +71,7 @@ Function CheckModified-File($url, $dest, $headers, $credentials, $timeout, $use_ $result.msg = $webResponse.StatusDescription $webResponse.Close() - if ($webLastMod -and ((Get-Date -Date $webLastMod) -lt $fileLastMod)) { + if ($webLastMod -and ((Get-Date -Date $webLastMod).ToUniversalTime() -lt $fileLastMod)) { return $false } else { return $true