Skip to content

Commit

Permalink
fix(timezone): remove stray UTC() call (#309)
Browse files Browse the repository at this point in the history
  • Loading branch information
UndeadBaneGitHub authored Dec 11, 2022
1 parent 826b77b commit 8a50949
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auth_jwt.go
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ func (mw *GinJWTMiddleware) TokenGenerator(data interface{}) (string, time.Time,
}
}

expire := mw.TimeFunc().UTC().Add(mw.Timeout)
expire := mw.TimeFunc().Add(mw.Timeout)
claims["exp"] = expire.Unix()
claims["orig_iat"] = mw.TimeFunc().Unix()
tokenString, err := mw.signedString(token)
Expand Down

0 comments on commit 8a50949

Please sign in to comment.