Skip to content

Commit

Permalink
fix(kubectl): from and to when getting profiles as UTC
Browse files Browse the repository at this point in the history
Fixed #15

Convert from and to to UTC when querying profiles

Signed-off-by: Gianluca Arbezzano <gianarb92@gmail.com>
  • Loading branch information
Gianluca Arbezzano committed Dec 12, 2019
1 parent 6775dd2 commit 8d392b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/cmd/get_profiles.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ func NewGetProfilesCmd() *cobra.Command {
}
}

req.To = time.Now()
req.From = req.To.Add(-from)
req.To = time.Now().UTC()
req.From = req.To.Add(-from).UTC()

resp, err := pClient.GetProfiles(ctx, req)
if err != nil {
Expand Down

0 comments on commit 8d392b4

Please sign in to comment.