Skip to content

Commit 020fbcd

Browse files
committed
wmi_queries: Linter fix
1 parent 82a6ae7 commit 020fbcd

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

windows_tools/wmi_queries/__init__.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717

1818
__intname__ = "windows_tools.wmi_queries"
1919
__author__ = "Orsiris de Jong"
20-
__copyright__ = "Copyright (C) 2020-2023 Orsiris de Jong"
20+
__copyright__ = "Copyright (C) 2020-2024 Orsiris de Jong"
2121
__description__ = "Windows WMI query wrapper, wmi timezone converters"
2222
__licence__ = "BSD 3 Clause"
23-
__version__ = "1.0.0"
24-
__build__ = "2023082901"
23+
__version__ = "1.0.1"
24+
__build__ = "2024110701"
2525

2626
import logging
2727
import re
@@ -266,6 +266,8 @@ def cim_timestamp_to_datetime(cim_timestamp: str, utc: bool = True) -> datetime:
266266
offset = int(cim_offset)
267267
elif "-" in cim_timestamp:
268268
offset = -int(cim_offset)
269+
else:
270+
offset = 0
269271

270272
if utc:
271273
timestamp = timestamp.replace(tzinfo=timezone(timedelta(minutes=offset)))

0 commit comments

Comments
 (0)