Skip to content

Commit

Permalink
Replace deprecated datetime.utcnow() with datetime.now()
Browse files Browse the repository at this point in the history
  • Loading branch information
swt2c committed Aug 25, 2024
1 parent 60c29d8 commit 6d65b5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion suds/wsse.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def now(cls):

@classmethod
def utc(cls):
return datetime.utcnow().replace(tzinfo=UtcTimezone())
return datetime.now(tz=UtcTimezone())

@classmethod
def sysdate(cls):
Expand Down

0 comments on commit 6d65b5a

Please sign in to comment.