From 5b79892a170949c6aa0fdcd6119646c40dd79fcf Mon Sep 17 00:00:00 2001 From: Will Anderson Date: Thu, 14 May 2026 15:42:46 -0500 Subject: [PATCH] fix: import UTC in import_generation_from_zip function scope The function-local import was missing UTC, causing NameError at runtime when datetime.now(UTC) was called. --- backend/services/export_import.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/services/export_import.py b/backend/services/export_import.py index 4ff280ce..9dd5ca4b 100644 --- a/backend/services/export_import.py +++ b/backend/services/export_import.py @@ -347,7 +347,7 @@ async def import_generation_from_zip(file_bytes: bytes, db: Session) -> dict: from pathlib import Path import tempfile import shutil - from datetime import datetime + from datetime import UTC, datetime from .. import config zip_buffer = io.BytesIO(file_bytes)