From a510e998ae1a78bd0d0e2db1ca3746aea9ff8865 Mon Sep 17 00:00:00 2001 From: Charles Lanahan Date: Mon, 1 Apr 2024 16:10:33 -0400 Subject: [PATCH] Updated call bc datetime.utcnow() to be deprecated (#63) 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 96ec8cd..dace1a2 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, 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,