Skip to main content
Question

getTimezoneOffset return 0 when using Zapier Code

  • March 12, 2023
  • 1 reply
  • 120 views

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

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

1 reply

Troy Tessalone
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • March 13, 2023