From e0b7f31fa1bbad3956a849d771f0acf0a893249d Mon Sep 17 00:00:00 2001 From: stroblme Date: Wed, 19 Aug 2026 21:54:44 +0200 Subject: [PATCH] Cloud routes: use timezone.utc, not datetime.UTC MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The app supports Python 3.10 (requires-python, and the base image is python:3.10); datetime.UTC only exists from 3.11. Every other module already uses timezone.utc — this was the one file out of step, and it only passed locally because the dev venv is 3.13. The container would not import at all. Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_01XtBzdDyLsmDaF1W7DLYtYM --- backend/app/api/routes/cloud.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/app/api/routes/cloud.py b/backend/app/api/routes/cloud.py index 088664c..61ce6c6 100644 --- a/backend/app/api/routes/cloud.py +++ b/backend/app/api/routes/cloud.py @@ -9,7 +9,7 @@ from __future__ import annotations import asyncio import logging -from datetime import UTC, datetime +from datetime import datetime, timezone from typing import Any import httpx @@ -105,7 +105,7 @@ async def enroll( # talking to. Nothing refreshes this. jwks=data["jwks"], local_user_id=str(current_user.id), - enrolled_at=datetime.now(UTC).isoformat(), + enrolled_at=datetime.now(timezone.utc).isoformat(), portal_account=current_user.email, ) cloud_config.save(config)