Skip to content

Commit

Permalink
Updated call bc datetime.utcnow() to be deprecated
Browse files Browse the repository at this point in the history
Signed-off-by: Charles Lanahan <[email protected]>
  • Loading branch information
daidoji committed Apr 1, 2024
1 parent cd67bc4 commit a0c629e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dkr/core/didding.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"""

from datetime import datetime
import datetime
import json
import math
import re
Expand Down Expand Up @@ -164,7 +164,7 @@ def generateDIDDoc(hby: habbing.Habery, did, aid, oobi=None, metadata=None, reg_

didResolutionMetadata = dict(
contentType="application/did+json",
retrieved=datetime.utcnow().strftime(DID_TIME_FORMAT)
retrieved=datetime.datetime.now(datetime.UTC).strftime(DID_TIME_FORMAT)
)
didDocumentMetadata = dict(
witnesses=witnesses,
Expand Down

0 comments on commit a0c629e

Please sign in to comment.