From: demx8as6 Date: Thu, 8 Jul 2021 12:07:38 +0000 (+0200) Subject: Wrong value format in measurment ves example X-Git-Tag: 2.2.1~5^2 X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=f65d13bb74fa868d0bbbefc6032c81238aa23d7c;p=oam.git Wrong value format in measurment ves example Issue-Id: OAM-221 Change-Id: I8078f05e86db23cb02f08c435a21cca14226d24a Signed-off-by: demx8as6 --- diff --git a/solution/dev/client-scripts-ves-v7/globalVesEventEmitter.py b/solution/dev/client-scripts-ves-v7/globalVesEventEmitter.py index 1824a04..fadd6c6 100644 --- a/solution/dev/client-scripts-ves-v7/globalVesEventEmitter.py +++ b/solution/dev/client-scripts-ves-v7/globalVesEventEmitter.py @@ -26,6 +26,7 @@ import socket import sys import yaml from pathlib import Path +from _datetime import timezone def sendVesEvent(data): url = data['config']['vesEndpoint']['url'] @@ -66,7 +67,7 @@ def sendHttpGet(url): sys.exit('Reading VES "stndDefined" message template failed.') def getInitData(domain, stndBody=''): - currentTime = datetime.datetime.utcnow() + currentTime = datetime.datetime.now(tz=timezone.utc) dir = os.path.dirname(os.path.realpath(__file__)) result = {}