'Google calendar API add hours

When i add an event using the API with Javascript, it use my GMT+X and add X hours to my start event.

I send to the API :

'dateTime': '2022-05-19T17:30:00.000Z',
'timeZone': 'Europe/Paris'

It'll create an event the 2022-05-19 at 19:30. (My google calendar is on Paris too)

With time change between winter and summer i can't do a "-X". I can change the timezone of my calendar, but it's not a real solution.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source