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

Function formatRecentTaskTime

static/js/app.js:1871–1877  ·  view source on GitHub ↗
(task)

Source from the content-addressed store, hash-verified

1869}
1870
1871function formatRecentTaskTime(task) {
1872 const source = task.completed_at || task.started_at || task.created_at;
1873 if (!source) return '-';
1874 const parsed = new Date(source);
1875 if (Number.isNaN(parsed.getTime())) return escapeHtml(source);
1876 return escapeHtml(parsed.toLocaleString('zh-CN', { hour12: false }));
1877}
1878
1879function buildRecentTaskSummary(task) {
1880 if (task.recovered_on_startup) {

Callers 1

loadRecentTasksFunction · 0.85

Calls 1

escapeHtmlFunction · 0.70

Tested by

no test coverage detected