MCPcopy
hub / github.com/github/awesome-copilot / fmtDate

Function fmtDate

extensions/java-modernization-studio/renderer.mjs:509–517  ·  view source on GitHub ↗
(iso)

Source from the content-addressed store, hash-verified

507 return { P0: "P0 · Blockers", P1: "P1 · High priority", P2: "P2 · Medium priority", P3: "P3 · Low / platform" }[sev] || sev;
508 }
509 function fmtDate(iso) {
510 try {
511 const d = new Date(iso);
512 if (isNaN(d.getTime())) return iso;
513 return d.toLocaleDateString(undefined, { month: "short", day: "numeric" }) + " " + d.toLocaleTimeString(undefined, { hour: "2-digit", minute: "2-digit" });
514 } catch (e) {
515 return iso;
516 }
517 }
518
519 // ---- autopilot -----------------------------------------------------------
520

Callers 1

assessmentTabFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected