MCPcopy Index your code
hub / github.com/garrytan/gstack / dateOnly

Function dateOnly

bin/gstack-memory-ingest.ts:694–701  ·  view source on GitHub ↗
(ts: string | undefined)

Source from the content-addressed store, hash-verified

692}
693
694function dateOnly(ts: string | undefined): string {
695 if (!ts) return new Date().toISOString().slice(0, 10);
696 try {
697 return new Date(ts).toISOString().slice(0, 10);
698 } catch {
699 return new Date().toISOString().slice(0, 10);
700 }
701}
702
703function buildTranscriptPage(path: string, session: ParsedSession): PageRecord {
704 const remote = resolveGitRemote(session.cwd);

Callers 1

buildTranscriptPageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected