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

Function fmt

packages/trpc/src/routers/event.ts:393–394  ·  view source on GitHub ↗
(d: Date)

Source from the content-addressed store, hash-verified

391 const prevEnd = new Date(startMs - 1);
392 const prevStart = new Date(prevEnd.getTime() - duration);
393 const fmt = (d: Date) =>
394 d.toISOString().slice(0, 19).replace('T', ' ');
395
396 return pagesService.getTopPages({
397 projectId: input.projectId,

Callers 1

event.tsFile · 0.70

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected