autogen
autogen copied to clipboard
fix: use timezone-aware websocket timestamps
Summary
- replace deprecated naive
datetime.utcnow()calls in the AutoGen Studio run websocket route - return explicit UTC timestamps for auth errors, validation errors, ping responses, and invalid JSON errors
Before / after
Before, websocket messages used naive UTC strings such as 2026-05-24T03:12:34.123456.
After, they use timezone-aware UTC strings such as 2026-05-24T03:12:34.123456+00:00.
Verification
python -m py_compile python/packages/autogen-studio/autogenstudio/web/routes/ws.py