mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-27 18:50:21 -07:00
Fix for win_get_url module (#39152)
This commit is contained in:
parent
afef20827b
commit
0c96863ec6
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,7 @@ Function CheckModified-File($url, $dest, $headers, $credentials, $timeout, $use_
|
||||||
$result.msg = $webResponse.StatusDescription
|
$result.msg = $webResponse.StatusDescription
|
||||||
$webResponse.Close()
|
$webResponse.Close()
|
||||||
|
|
||||||
if ($webLastMod -and ((Get-Date -Date $webLastMod) -lt $fileLastMod)) {
|
if ($webLastMod -and ((Get-Date -Date $webLastMod).ToUniversalTime() -lt $fileLastMod)) {
|
||||||
return $false
|
return $false
|
||||||
} else {
|
} else {
|
||||||
return $true
|
return $true
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue