Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

fix(api/agent/list): fix date parsing again (#4472)

Gergő Móricz162e660426f2
diff --git a/apps/api/src/controllers/v2/agent-list.ts b/apps/api/src/controllers/v2/agent-list.ts
index b1070ef95..0c8ba8fdf 100644
--- a/apps/api/src/controllers/v2/agent-list.ts
+++ b/apps/api/src/controllers/v2/agent-list.ts
@@ -102,7 +102,7 @@ export async function agentListController(
before: (parsedBefore !== undefined
? new Date(parsedBefore).toISOString()
: new Date().toISOString()
- ).slice(0, -1), // slice Z off the end of the ISO string because clickhouse hates it
+ ).split(".")[0], // slice .nnnZ off the end of the ISO string because clickhouse hates it
},
format: "JSONEachRow",
});