Skip to content

Commit 6d118b7

Browse files
changed start time to include an entire hour
1 parent 4aa6f23 commit 6d118b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/CIPPCore/Public/Entrypoints/Orchestrator Functions/Start-AuditLogOrchestrator.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function Start-AuditLogOrchestrator {
1515
$TenantList = Get-Tenants -IncludeErrors
1616
# Round time down to nearest minute
1717
$Now = Get-Date
18-
$StartTime = ($Now.AddSeconds(-$Now.Seconds)).AddMinutes(-30)
18+
$StartTime = ($Now.AddSeconds(-$Now.Seconds)).AddHours(-1)
1919
$EndTime = $Now.AddSeconds(-$Now.Seconds)
2020

2121
if (($AuditLogSearches | Measure-Object).Count -eq 0) {

0 commit comments

Comments
 (0)