MCPcopy Create free account
hub / github.com/ChinaSiro/claude-code-sourcemap / parseISOString

Function parseISOString

restored-src/src/utils/log.ts:285–298  ·  view source on GitHub ↗
(s: string)

Source from the content-addressed store, hash-verified

283}
284
285function parseISOString(s: string): Date {
286 const b = s.split(/\D+/)
287 return new Date(
288 Date.UTC(
289 parseInt(b[0]!, 10),
290 parseInt(b[1]!, 10) - 1,
291 parseInt(b[2]!, 10),
292 parseInt(b[3]!, 10),
293 parseInt(b[4]!, 10),
294 parseInt(b[5]!, 10),
295 parseInt(b[6]!, 10),
296 ),
297 )
298}
299
300export function logMCPError(serverName: string, error: unknown): void {
301 try {

Callers 1

loadLogListFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected