Skip to content

Commit

Permalink
Update io.py
Browse files Browse the repository at this point in the history
  • Loading branch information
pllim authored Nov 4, 2024
1 parent 7310833 commit 1131591
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wss_tools/utils/io.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
"""Module to handle I/O for files."""

# STDLIB
import datetime
import os
import xml.etree.ElementTree as ET
from collections import defaultdict
from datetime import datetime
from xml.dom import minidom

__all__ = ['output_xml']
Expand Down Expand Up @@ -100,6 +100,6 @@ def output_xml(xmldict, filename):

def _get_timestamp():
"""Return dictionary with UTC timestamp metadata."""
d = datetime.utcnow()
d = datetime.datetime.now(datetime.UTC)
return {'@date': d.strftime('%Y-%m-%dZ'),
'@time': d.strftime('%H:%M:%S.%fZ')}

0 comments on commit 1131591

Please sign in to comment.