const iso = "YYYY-MM-DDTHH:mm:ssZZ";
console.log(dayjs("2022-04-01T19:43:13+0200", iso, true).format(iso)); // -> 2022-04-01T19:43:13+0200
console.log(dayjs("2022-01-01T19:04:18+0200", iso, true).format(iso)); // -> Invalid Date
console.log(dayjs("2022-01-01T19:04:18+0200", iso, false).format(iso)); // -> 2022-01-01T18:04:18+0100