log minutes correctly (#591)

This commit is contained in:
Carrie Roberts
2019-10-21 15:03:09 -06:00
committed by Michael Haag
parent 3d839e7bd6
commit c903c6c00e
@@ -3,7 +3,7 @@ function Write-ExecutionLog($startTime, $technique, $testNum, $testName, $logPat
New-Item $logPath -Force -ItemType File | Out-Null
}
$timeUTC = (Get-Date($startTime).toUniversalTime() -uformat "%Y-%m-%dT%H:%m:%SZ").ToString()
$timeLocal = (Get-Date($startTime) -uformat "%Y-%m-%dT%H:%m:%S").ToString()
$timeUTC = (Get-Date($startTime).toUniversalTime() -uformat "%Y-%m-%dT%H:%M:%SZ").ToString()
$timeLocal = (Get-Date($startTime) -uformat "%Y-%m-%dT%H:%M:%S").ToString()
[PSCustomObject][ordered]@{ "Execution Time (UTC)" = $timeUTC; "Execution Time (Local)" = $timeLocal; "Technique" = $technique; "Test Number" = $testNum; "Test Name" = $testName } | Export-Csv -Path $LogPath -NoTypeInformation -Append
}