logarchive: parse log show JSON timestamps on Python 3.10 · abrignoni/iLEAPP@809cc1b · GitHub
Skip to content

Commit 809cc1b

Browse files
abrignoniclaude
andcommitted
logarchive: parse log show JSON timestamps on Python 3.10
'log show --style json' writes the offset without a colon (2026-03-14 10:00:00.100000-0500). datetime.fromisoformat() accepts that only from 3.11, so on 3.10 the JSON import raised and imported nothing. Normalize the offset and the fraction width before parsing, the same way parse_iterator_timestamp already does for the native import. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 13e8264 commit 809cc1b

2 files changed

Lines changed: 32 additions & 10 deletions

File tree

‎admin/test/scripts/test_logarchive_native.py‎

Lines changed: 17 additions & 0 deletions

‎scripts/artifacts/logarchive.py‎

Lines changed: 15 additions & 10 deletions

0 commit comments

Comments
 (0)