Skip to content

Commit

Permalink
fix ref
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkralidis committed Dec 16, 2024
1 parent 46ce40b commit d92bca0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wis2-gdc-management/wis2_gdc/wme.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#
###############################################################################

from datetime import datetime, UTC
from datetime import datetime
import logging
import uuid

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d92bca0

Please sign in to comment.