Skip to content

Commit

Permalink
FIX
Browse files Browse the repository at this point in the history
  • Loading branch information
gmgigi96 committed Nov 1, 2022
1 parent 3527608 commit 341108a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/token/manager/jwt/jwt.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,7 @@ func getNextWeekend(now time.Time) time.Time {
}

func setTime(t time.Time, hour, min, sec int) time.Time {
t = t.Truncate(24 * time.Hour)
return t.Add(time.Duration(hour)*time.Hour + time.Duration(min)*time.Minute + time.Duration(sec)*time.Second)
return time.Date(t.Year(), t.Month(), t.Day(), hour, min, sec, 0, t.Location())
}

func (m *manager) DismantleToken(ctx context.Context, tkn string) (*user.User, map[string]*auth.Scope, error) {
Expand Down

0 comments on commit 341108a

Please sign in to comment.