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

Function date

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

Source from the content-addressed store, hash-verified

598
599const format = {
600 date(dateStr) {
601 if (!dateStr) return '-';
602 const date = new Date(dateStr);
603 return date.toLocaleString('zh-CN', {
604 year: 'numeric',
605 month: '2-digit',
606 day: '2-digit',
607 hour: '2-digit',
608 minute: '2-digit'
609 });
610 },
611
612 dateShort(dateStr) {
613 if (!dateStr) return '-';

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected