date-fns-tz
date-fns-tz copied to clipboard
Unexpected behavior if offset present
The value passes from third party package
const utcDate = zonedTimeToUtc('2020-05-14T10:00', 'Europe/Rome') // 2020-05-14T08:00:00.000Z
const utcDate = zonedTimeToUtc('2020-05-14T10:00+0300', 'Europe/Rome') // 2020-05-14T07:00:00.000Z
Can someone explain to me, this is how it should work ?