From c903c6c00ebf2ae08c76f3f672956d6919dced44 Mon Sep 17 00:00:00 2001 From: Carrie Roberts Date: Mon, 21 Oct 2019 15:03:09 -0600 Subject: [PATCH] log minutes correctly (#591) --- .../Invoke-AtomicRedTeam/Private/Write-ExecutionLog.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/execution-frameworks/Invoke-AtomicRedTeam/Invoke-AtomicRedTeam/Private/Write-ExecutionLog.ps1 b/execution-frameworks/Invoke-AtomicRedTeam/Invoke-AtomicRedTeam/Private/Write-ExecutionLog.ps1 index ce05c1e413..54e6d170cd 100644 --- a/execution-frameworks/Invoke-AtomicRedTeam/Invoke-AtomicRedTeam/Private/Write-ExecutionLog.ps1 +++ b/execution-frameworks/Invoke-AtomicRedTeam/Invoke-AtomicRedTeam/Private/Write-ExecutionLog.ps1 @@ -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 } \ No newline at end of file