Skip to main content

Hi there,

 

I am wondering why getTimezoneOffset is always returning 0 when I run it in Zapier Code using JS. I have set my timezone properly and yet and I am getting 0 when i run this code

var initialArriveDate = "2023-02-01T15:00:00-07:00";

var arrivDate = new Date(initialArriveDate);

var timeOffsetArrival = arrivDate.getTimezoneOffset();

 

Can you please help