Skip to content

Commit

Permalink
normalize the start time to the beginning of the month in export api
Browse files Browse the repository at this point in the history
  • Loading branch information
aslamovamir committed Jan 29, 2025
1 parent f4fab41 commit bdf4e66
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions vault/activity_log.go
Original file line number Diff line number Diff line change
Expand Up @@ -2971,6 +2971,9 @@ func (a *ActivityLog) writeExport(ctx context.Context, rw http.ResponseWriter, f
}
defer a.inprocessExport.Store(false)

// Normalize the start time to the beginning of the month to keep consistency with the sys/counters API
startTime = timeutil.StartOfMonth(startTime)

// Find the months with activity log data that are between the start and end
// months. We want to walk this in cronological order so the oldest instance of a
// client usage is recorded, not the most recent.
Expand Down

0 comments on commit bdf4e66

Please sign in to comment.