Skip to content

Commit

Permalink
Sem-ver: bugfix Move away from using utcnow as it is deprecated and s…
Browse files Browse the repository at this point in the history
…cheduled for removal

Signed-off-by: David Black <[email protected]>
  • Loading branch information
dbaxa committed Nov 13, 2024
1 parent 19030de commit 69f65ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion atlassian_jwt_auth/signer.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def _generate_claims(self, audience, **kwargs):
return claims

def _now(self):
return datetime.datetime.utcnow()
return datetime.datetime.now(datetime.timezone.utc)

def generate_jwt(self, audience, **kwargs):
""" returns a new signed jwt for use. """
Expand Down

0 comments on commit 69f65ab

Please sign in to comment.