MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / fmt

Function fmt

packages/trpc/src/routers/overview.ts:329–329  ·  view source on GitHub ↗
(iso: string)

Source from the content-addressed store, hash-verified

327 // overview.stats' series date format, so markers x-align with the
328 // chart's data points (xScale matches by Date identity).
329 const fmt = (iso: string) => format(new Date(iso), 'yyyy-MM-dd HH:mm:ss');
330 return clusters.map((cluster) => ({
331 anchorDate: fmt(cluster.anchorDate),
332 spikes: cluster.spikes.map((spike) => ({

Callers 1

overview.tsFile · 0.70

Calls 1

formatFunction · 0.85

Tested by

no test coverage detected