From bf50202ba0023cfc6b4115841aec2cf38568e420 Mon Sep 17 00:00:00 2001 From: Ajin Abraham Date: Mon, 4 Nov 2024 19:04:38 -0800 Subject: [PATCH] QA --- mobsfscan/formatters/sarif.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mobsfscan/formatters/sarif.py b/mobsfscan/formatters/sarif.py index 7ea534b..4d237f8 100644 --- a/mobsfscan/formatters/sarif.py +++ b/mobsfscan/formatters/sarif.py @@ -7,7 +7,7 @@ MIT License, Copyright (c) Microsoft Corporation. """ -from datetime import datetime +from datetime import datetime, timezone from pathlib import PurePath import urllib.parse as urlparse @@ -132,7 +132,7 @@ def sarif_output(outfile, scan_results, mobsfscan_version, path): version=mobsfscan_version, )), invocations=[om.Invocation( - end_time_utc=datetime.utcnow().strftime(TS_FORMAT), + end_time_utc=datetime.now(timezone.utc).strftime(TS_FORMAT), execution_successful=True, )])]) run = log.runs[0]