From d92bca017617d4a8d034b3451dcf0b22dd1fe539 Mon Sep 17 00:00:00 2001 From: Tom Kralidis Date: Mon, 16 Dec 2024 12:52:51 -0500 Subject: [PATCH] fix ref --- wis2-gdc-management/wis2_gdc/wme.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wis2-gdc-management/wis2_gdc/wme.py b/wis2-gdc-management/wis2_gdc/wme.py index 1cd5d40..b14661d 100644 --- a/wis2-gdc-management/wis2_gdc/wme.py +++ b/wis2-gdc-management/wis2_gdc/wme.py @@ -19,7 +19,7 @@ # ############################################################################### -from datetime import datetime, UTC +from datetime import datetime import logging import uuid @@ -49,7 +49,7 @@ def generate_wme(subject: str, report_type: str, data: dict) -> dict: 'source': CENTRE_ID, 'subject': subject, 'id': str(uuid.uuid4()), - 'time': datetime.now(UTC).strftime('%Y-%m-%dT%H:%M:%SZ'), + 'time': datetime.utcnow().strftime('%Y-%m-%dT%H:%M:%SZ'), 'datacontenttype': 'application/json', 'dataschema': DATASCHEMAS[report_type], 'data': data