(type: string)
| 24 | second: '2-digit', |
| 25 | }).formatToParts(new Date()); |
| 26 | const get = (type: string) => |
| 27 | parts.find(p => p.type === type)?.value ?? '00'; |
| 28 | const summary = `${get('year')}-${get('month')}-${get('day')}T${get( |
| 29 | 'hour', |
| 30 | )}:${get('minute')}:${get('second')} (${effectiveTz})`; |