From a0c629e115a044732bd930b246d59436f9478244 Mon Sep 17 00:00:00 2001 From: Charles Lanahan Date: Mon, 1 Apr 2024 11:54:20 -0400 Subject: [PATCH] Updated call bc datetime.utcnow() to be deprecated Signed-off-by: Charles Lanahan --- src/dkr/core/didding.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dkr/core/didding.py b/src/dkr/core/didding.py index 99035e3..c84e4bd 100644 --- a/src/dkr/core/didding.py +++ b/src/dkr/core/didding.py @@ -4,7 +4,7 @@ """ -from datetime import datetime +import datetime import json import math import re @@ -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,