Skip to content

Commit

Permalink
Updated call bc datetime.utcnow() to be deprecated (#63)
Browse files Browse the repository at this point in the history
Signed-off-by: Charles Lanahan <[email protected]>
  • Loading branch information
daidoji authored Apr 1, 2024
1 parent 798ccfa commit a510e99
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, meta=False, reg_nam

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 a510e99

Please sign in to comment.