From 1ea2ba9f1559d45a357cda0b8fbba4bf9bfe3f2b Mon Sep 17 00:00:00 2001 From: MyAgent Date: Sun, 17 May 2026 08:06:01 +0000 Subject: [PATCH] Add UTC current time to response --- main.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index fc71224..518309d 100644 --- a/main.py +++ b/main.py @@ -1,8 +1,13 @@ from fastapi import FastAPI, Request +from datetime import datetime, timezone app = FastAPI() @app.get("/") async def read_root(request: Request): client_host = request.client.host - return {"message": "ハローワールド!!", "client_ip": client_host} \ No newline at end of file + return { + "message": "ハローワールド!!", + "client_ip": client_host, + "current_time_utc": datetime.now(timezone.utc).isoformat() + } \ No newline at end of file