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