Skip to content

Commit 1ead0ce

Browse files
solomonneascodex
andcommitted
fix(run): support Python 3.10 timestamps
Co-Authored-By: Codex <codex@openai.com>
1 parent cd1e2ab commit 1ead0ce

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/brigade/seat_health.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import time
1818
from concurrent.futures import ThreadPoolExecutor, as_completed
1919
from dataclasses import dataclass, replace
20-
from datetime import UTC, datetime
20+
from datetime import datetime, timezone
2121
from pathlib import Path
2222
from typing import Any, Callable, Literal, Protocol
2323
from urllib.parse import urlsplit
@@ -693,7 +693,7 @@ def _probe_id(name: str, started: float) -> str:
693693

694694

695695
def _timestamp(value: float) -> str:
696-
return datetime.fromtimestamp(value, UTC).isoformat(timespec="milliseconds").replace("+00:00", "Z")
696+
return datetime.fromtimestamp(value, timezone.utc).isoformat(timespec="milliseconds").replace("+00:00", "Z")
697697

698698

699699
def _env_target(key: str) -> str:

0 commit comments

Comments
 (0)