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
+1 -1
View File
@@ -156,7 +156,7 @@ async def create_backup(
# Update backup record
backup.status = "completed"
backup.size_bytes = size_bytes
backup.completed_at = datetime.utcnow()
backup.completed_at = datetime.now(UTC)
await db.flush()
await db.refresh(backup)
+2 -1
View File
@@ -9,6 +9,7 @@ import json
import logging
import socket
import uuid
from datetime import UTC, datetime
from typing import Any
from urllib.parse import urlparse
@@ -218,7 +219,7 @@ async def send_webhook(
body = {
"event": event_name,
"payload": payload,
"timestamp": __import__("datetime").datetime.utcnow().isoformat() + "Z",
"timestamp": datetime.now(UTC).isoformat().replace("+00:00", "Z"),
}
body_bytes = json.dumps(body, default=str).encode("utf-8")