Skip to content

Commit

Permalink
changed start time to include an entire hour
Browse files Browse the repository at this point in the history
  • Loading branch information
KelvinTegelaar committed Oct 4, 2024
1 parent 4aa6f23 commit 6d118b7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function Start-AuditLogOrchestrator {
$TenantList = Get-Tenants -IncludeErrors
# Round time down to nearest minute
$Now = Get-Date
$StartTime = ($Now.AddSeconds(-$Now.Seconds)).AddMinutes(-30)
$StartTime = ($Now.AddSeconds(-$Now.Seconds)).AddHours(-1)
$EndTime = $Now.AddSeconds(-$Now.Seconds)

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

0 comments on commit 6d118b7

Please sign in to comment.