File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1515import re
1616from typing import Any
1717from pathlib import Path
18- from datetime import datetime
18+ from datetime import datetime , timezone
1919import time
2020from mistletoe import markdown
2121import humanize
@@ -312,7 +312,7 @@ def make_summary(
312312 """Make an HTML summary of the alerts."""
313313 title = '<div><h1><i class="fa-brands fa-github" style="font-size: xxx-large" title="GitHub Advanced Security"></i> Code Scanning Report</h1></div>'
314314 generated_at = '<div style="font-size: small">Generated at {}Z</div>' .format (
315- datetime .utcnow ( ).isoformat (timespec = "seconds" )
315+ datetime .now ( timezone . utc ).isoformat (timespec = "seconds" )
316316 )
317317 scope = "<div><strong>Scope</strong>: {}</div>" .format (escape (scope ))
318318
You can’t perform that action at this time.
0 commit comments