fix(d2): datetime.now(UTC) everywhere + SQLITE-001 automation tests on ephemeral postgres
Check Cross-Plugin Imports / check (push) Has been cancelled

This commit is contained in:
Agent Zero
2026-08-24 01:22:42 +02:00
parent 5e0ffd91c2
commit d89044d8f7
6 changed files with 115 additions and 31 deletions
+2 -2
View File
@@ -4,7 +4,7 @@ from __future__ import annotations
import logging
import uuid
from datetime import datetime
from datetime import UTC, datetime
from typing import Any
from fastapi import APIRouter, Depends, HTTPException
@@ -170,7 +170,7 @@ async def list_server_tools(
tools_resp = await client.list_tools()
# Update last_connected_at
await db.execute(
update(McpServerConfigModel).where(McpServerConfigModel.id == sid).values(last_connected_at=datetime.utcnow())
update(McpServerConfigModel).where(McpServerConfigModel.id == sid).values(last_connected_at=datetime.now(UTC))
)
await db.commit()
return tools_resp