Skip to content

Commit

Permalink
fix end date calculation (#11232) (#11241)
Browse files Browse the repository at this point in the history
  • Loading branch information
swayne275 committed Mar 30, 2021
1 parent 4d43ab4 commit fb730b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vault/logical_system_activity.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ func (b *SystemBackend) handleClientMetricQuery(ctx context.Context, req *logica
// Also convert any user inputs to UTC to avoid
// problems later.
if endTime.IsZero() {
endTime = timeutil.EndOfMonth(time.Now().UTC().AddDate(0, -1, 0))
endTime = timeutil.EndOfMonth(timeutil.StartOfPreviousMonth(time.Now().UTC()))
} else {
endTime = endTime.UTC()
}
Expand Down

0 comments on commit fb730b6

Please sign in to comment.