From 790ef81b06b9ef9beca7a1c0a179a5387caa4fe5 Mon Sep 17 00:00:00 2001 From: Rolly Calma <115199279+Ghraven@users.noreply.github.com> Date: Fri, 19 Jun 2026 02:58:25 +0800 Subject: [PATCH] fix: use aware UTC in health timestamp (#4503) --- app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index 1950c1b2f..57d091efd 100644 --- a/app.py +++ b/app.py @@ -39,7 +39,7 @@ load_dotenv(encoding="utf-8-sig") import asyncio import logging import secrets -from datetime import datetime +from datetime import datetime, timezone from typing import Dict from contextlib import asynccontextmanager @@ -863,7 +863,7 @@ async def get_version(): @app.get("/api/health") async def health_check() -> Dict[str, str]: - return {"status": "healthy", "timestamp": datetime.utcnow().isoformat()} + return {"status": "healthy", "timestamp": datetime.now(timezone.utc).isoformat()} @app.get("/api/ready") async def readiness_check() -> JSONResponse: