(iso: string)
| 56 | } |
| 57 | |
| 58 | export function formatSessionWhen(iso: string): string { |
| 59 | try { |
| 60 | return new Date(iso).toLocaleString(undefined, { |
| 61 | month: "short", |
| 62 | day: "numeric", |
| 63 | hour: "2-digit", |
| 64 | minute: "2-digit", |
| 65 | }); |
| 66 | } catch { |
| 67 | return iso; |
| 68 | } |
| 69 | } |