(value: string | null)
| 106 | } |
| 107 | |
| 108 | function formatTimestamp(value: string | null): string { |
| 109 | if (!value) return 'Unknown' |
| 110 | const date = new Date(value) |
| 111 | if (Number.isNaN(date.getTime())) { |
| 112 | return value |
| 113 | } |
| 114 | return date.toLocaleString() |
| 115 | } |
| 116 | |
| 117 | export function extractRoutineRecords(payload: unknown): RoutineRecord[] { |
| 118 | if (Array.isArray(payload)) { |
no outgoing calls
no test coverage detected