Fix for win_get_url module (#39152)

pull/39204/head
Gianluca 6 years ago committed by Jordan Borean
parent afef20827b
commit 0c96863ec6

@ -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

Loading…
Cancel
Save