From 9adba10f3f4bb3bb756f9de53fbf6820668157db Mon Sep 17 00:00:00 2001 From: "Li, Jiang" Date: Fri, 9 Oct 2026 20:48:32 +0800 Subject: [PATCH] [Bugfix] Fix pre-commit check (#60840) Signed-off-by: jiang1.li --- tools/recipes/sweep/sweep_html_report.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/recipes/sweep/sweep_html_report.py b/tools/recipes/sweep/sweep_html_report.py index 6d22713608..bac10f9b4a 100644 --- a/tools/recipes/sweep/sweep_html_report.py +++ b/tools/recipes/sweep/sweep_html_report.py @@ -8,7 +8,7 @@ from __future__ import annotations import argparse import json -from datetime import datetime, timezone +from datetime import UTC, datetime from html import escape from pathlib import Path from typing import Any @@ -501,7 +501,7 @@ def generate_report( recommended_concurrency = (concurrency.get("recommended") or {}).get( "max_concurrency" ) - generated = datetime.now(timezone.utc).strftime("%Y-%m-%d %H:%M UTC") + generated = datetime.now(UTC).strftime("%Y-%m-%d %H:%M UTC") styles = """ :root { color-scheme: light; --ink: #17324d; --blue: #146c94;