MCPcopy Create free account
hub / github.com/Tron521/codex-console-temp / dateShort

Function dateShort

static/js/utils.js:612–616  ·  view source on GitHub ↗
(dateStr)

Source from the content-addressed store, hash-verified

610 },
611
612 dateShort(dateStr) {
613 if (!dateStr) return '-';
614 const date = new Date(dateStr);
615 return date.toLocaleDateString('zh-CN');
616 },
617
618 relativeTime(dateStr) {
619 if (!dateStr) return '-';

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected