Fix for win_get_url module (#39152)

pull/4420/head
Gianluca 2018-04-24 03:30:03 +02:00 committed by Jordan Borean
parent afef20827b
commit 0c96863ec6
1 changed files with 1 additions and 1 deletions

View File

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