(timestamp)
| 84 | } |
| 85 | |
| 86 | function formatTimestamp(timestamp) { |
| 87 | if (!timestamp) return ''; |
| 88 | try { |
| 89 | const date = new Date(timestamp); |
| 90 | return date.toLocaleString('zh-CN'); |
| 91 | } catch (e) { |
| 92 | return timestamp; |
| 93 | } |
| 94 | } |
| 95 | |
| 96 | function truncateText(text, maxLength = 100) { |
| 97 | if (!text) return ''; |
no outgoing calls
no test coverage detected