log minutes correctly (#591)
This commit is contained in:
committed by
Michael Haag
parent
3d839e7bd6
commit
c903c6c00e
+2
-2
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user