(value)
| 148 | } |
| 149 | |
| 150 | function formatListUpdatedAt(value) { |
| 151 | if (!value) return ""; |
| 152 | const date = new Date(value); |
| 153 | if (Number.isNaN(date.getTime())) return ""; |
| 154 | |
| 155 | const formatted = new Intl.DateTimeFormat(undefined, { |
| 156 | day: "2-digit", |
| 157 | month: "2-digit", |
| 158 | year: "2-digit", |
| 159 | hour: "2-digit", |
| 160 | minute: "2-digit", |
| 161 | hour12: false, |
| 162 | }) |
| 163 | .format(date) |
| 164 | .replace(",", ""); |
| 165 | return `Updated ${formatted}`; |
| 166 | } |
| 167 | |
| 168 | function setPayloadUpdatedAtText(text) { |
| 169 | if (!UI.payloadUpdatedAt) return; |
no outgoing calls
no test coverage detected