From 20b1afd9ab30970e0d5129ded624ac7619b07456 Mon Sep 17 00:00:00 2001 From: SpecialX <47072643+wangxiner55@users.noreply.github.com> Date: Wed, 8 Jul 2026 12:52:48 +0800 Subject: [PATCH] =?UTF-8?q?fix(ai):=20ruff=20=E8=87=AA=E5=8A=A8=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=20health=20=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/ai/src/health/health.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/services/ai/src/health/health.py b/services/ai/src/health/health.py index 744734a..b8b729a 100644 --- a/services/ai/src/health/health.py +++ b/services/ai/src/health/health.py @@ -9,7 +9,8 @@ from health import router as health_router app.include_router(health_router) """ -from datetime import datetime, timezone + +from datetime import UTC, datetime from fastapi import APIRouter @@ -32,5 +33,5 @@ async def readyz() -> dict: return { "status": "ok", "service": SERVICE_NAME, - "timestamp": datetime.now(timezone.utc).isoformat(), + "timestamp": datetime.now(UTC).isoformat(), }