Fix timestamp parsing in aggregate report by removing fractional seconds

This commit is contained in:
Sean Whalen
2026-01-21 13:08:48 -05:00
parent 50fcb51577
commit a2a75f7a81

View File

@@ -751,8 +751,8 @@ def parse_aggregate_report_xml(
new_report_metadata["report_id"] = report_id new_report_metadata["report_id"] = report_id
date_range = report["report_metadata"]["date_range"] date_range = report["report_metadata"]["date_range"]
begin_ts = int(date_range["begin"]) begin_ts = int(date_range["begin"].split(".")[0])
end_ts = int(date_range["end"]) end_ts = int(date_range["end"].split(".")[0])
span_seconds = end_ts - begin_ts span_seconds = end_ts - begin_ts
normalize_timespan = span_seconds > normalize_timespan_threshold_hours * 3600 normalize_timespan = span_seconds > normalize_timespan_threshold_hours * 3600