Update defender_for_endpoint_alerts.py

changed filterTime = datetime.now() - timedelta(hours = 1) to filterTime = datetime.utcnow() - timedelta(hours = 1)
This commit is contained in:
taylor_socfortress
2022-10-25 13:00:45 -05:00
committed by GitHub
parent a6a8a496ee
commit 7c89ce5711

View File

@@ -50,7 +50,7 @@ aadToken = jsonResponse["access_token"]
#build get-alerts API
filterTime = datetime.now() - timedelta(hours = 1) #If you want to include alerts from longer then an hour, change here (days, weeks)
filterTime = datetime.utcnow() - timedelta(hours = 1) #If you want to include alerts from longer then an hour, change here (days, weeks)
filterTime = filterTime.strftime("%Y-%m-%dT%H:%M:%SZ")
## Get Alerts #########################################################