MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / shortDay

Function shortDay

telemetry-dashboard/public/theme.js:100–108  ·  view source on GitHub ↗
(day)

Source from the content-addressed store, hash-verified

98
99/** "2026-07-04""Jul 4". Axis ticks only; tables keep the full date. */
100export function shortDay(day) {
101 const parsed = Date.parse(`${day}T00:00:00Z`);
102 if (!Number.isFinite(parsed)) return day;
103 return new Date(parsed).toLocaleDateString('en-US', {
104 month: 'short',
105 day: 'numeric',
106 timeZone: 'UTC',
107 });
108}
109
110// ---------------------------------------------------------------------------
111// Chart.js defaults

Callers 1

renderFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected