You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current implementation of _extract_timestamp() in src/powerapi/report/report.py, fails to parse valid ISO 8601 timestamps that include timezone information (e.g., '2025-04-03T12:36:20.800232411+00:00').
The function only handles ISO 8601 timestamps without timezone information.
Expected Behavior
The function should successfully parse ISO 8601 timestamps with timezone information.
Current Behavior
The function raises a ValueError when parsing timestamps with timezone information.
Description
The current implementation of
_extract_timestamp()
insrc/powerapi/report/report.py
, fails to parse valid ISO 8601 timestamps that include timezone information (e.g., '2025-04-03T12:36:20.800232411+00:00').The function only handles ISO 8601 timestamps without timezone information.
Expected Behavior
The function should successfully parse ISO 8601 timestamps with timezone information.
Current Behavior
The function raises a
ValueError
when parsing timestamps with timezone information.Example code
Versions
powerapi : 2.10.0
python : 3.13.2
Optional notes
datetime.fromisoformat()
was added in Python 3.7The text was updated successfully, but these errors were encountered: