autogen icon indicating copy to clipboard operation
autogen copied to clipboard

fix: use timezone-aware websocket timestamps

Open Ghraven opened this issue 6 months ago • 0 comments

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

Ghraven avatar May 24 '26 02:05 Ghraven