()
| 29 | } |
| 30 | |
| 31 | function localISO() { |
| 32 | const d = new Date(); |
| 33 | const off = d.getTimezoneOffset(); |
| 34 | const sign = off <= 0 ? "+" : "-"; |
| 35 | const abs = Math.abs(off); |
| 36 | const local = new Date(d.getTime() - off * 60000); |
| 37 | return local.toISOString().replace( |
| 38 | "Z", |
| 39 | `${sign}${String(Math.floor(abs / 60)).padStart(2, "0")}:${String(abs % 60).padStart(2, "0")}`, |
| 40 | ); |
| 41 | } |
| 42 | |
| 43 | const noop = () => {}; |
| 44 |