ait-aecid / aecid-alert-aggregation

A method for grouping, clustering, and merging semi-structured alerts
GNU General Public License v3.0
16 stars 4 forks source link

Fix for timestamp processing to work with Python 3.6 #3

Closed martineian closed 7 months ago

martineian commented 7 months ago

strptime in Python 3.6 is unable to handle ISO8601 timestamps with 'Z' as the time zone indicator. This functionality was added in Python 3.7:

https://docs.python.org/3/library/datetime.html#strftime-and-strptime-behavior

parser.isoparse is able to handle this correctly in Python 3.6 as well.