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

Function formatAutoMonitorTimestamp

static/js/app.js:1724–1736  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

1722}
1723
1724function formatAutoMonitorTimestamp(value) {
1725 if (!value) return '-';
1726 const date = new Date(value);
1727 if (Number.isNaN(date.getTime())) return value;
1728 return date.toLocaleString('zh-CN', {
1729 hour12: false,
1730 month: '2-digit',
1731 day: '2-digit',
1732 hour: '2-digit',
1733 minute: '2-digit',
1734 second: '2-digit'
1735 });
1736}
1737
1738function updateAutoMonitorHeader(status, lastCheckedAt) {
1739 if (!elements.autoMonitorStatusBadge || !elements.autoMonitorLastChecked) return;

Callers 2

updateAutoMonitorHeaderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected