console.log(moment(foo).format());
gives me the output: 2021-10-11T00:00:00+02:00
console.log(new Date(foo).toISOString());
gives me the output: 2021-10-10T22:00:00.000Z
What do I need to do in order to get output #2 to match output #1 that uses moment?