(value)
| 1722 | } |
| 1723 | |
| 1724 | function 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 | |
| 1738 | function updateAutoMonitorHeader(status, lastCheckedAt) { |
| 1739 | if (!elements.autoMonitorStatusBadge || !elements.autoMonitorLastChecked) return; |
no outgoing calls
no test coverage detected