From 52c33ce3066a2fb0d0a4b6bb0bbc33b45966fcbd Mon Sep 17 00:00:00 2001 From: Marian Gawron Date: Mon, 8 Apr 2024 10:50:56 +0200 Subject: [PATCH] fix: Qualys Parser used a Date Field for the mitigation_date, however the Finding-Model requires a DateTime Field which is not compatible and imports are getting canceled --- dojo/tools/qualys/parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dojo/tools/qualys/parser.py b/dojo/tools/qualys/parser.py index b8498962f1a..68bc6ecfb73 100644 --- a/dojo/tools/qualys/parser.py +++ b/dojo/tools/qualys/parser.py @@ -173,7 +173,7 @@ def parse_finding(host, tree): if last_fixed is not None: _temp["mitigation_date"] = datetime.datetime.strptime( last_fixed, "%Y-%m-%dT%H:%M:%SZ" - ).date() + ) else: _temp["mitigation_date"] = None # read cvss value if present