• Instructions to Ask a Question

    For any assistance, please click the "Ask a Question" button and select the Pabbly product for which you require support.

    We offer seven comprehensive applications designed to help you efficiently manage and grow your business:

    Our support team endeavors to respond within 24 business hours (Monday to Friday, 10:00 AM to 6:00 PM IST). We appreciate your understanding and patience.

    🚀 Exclusive Lifetime Offers 🚀

    We invite you to take advantage of our special one-time payment plans, providing lifetime access to select applications:

    • 🔥 Pabbly Connect — Lifetime Access for $249View Offer
    • 🔥 Pabbly Subscription Billing — Lifetime Access for $249View Offer
    • 🔥 Pabbly Chatflow — Lifetime Access for $249View Offer

    Make a one-time investment and enjoy the advantages of robust business management tools for years to come.

Code Running Different in Pabbly Code from Locally.

florian_

Member
Hello,

I am having issue with Javascript code running different in Pabbly Code (Not how it is supposed to run). Can you please tell me what steps to take towards this issue. Do I need to provide code?

Its a bit urgent for me to resolve this issue.
Looking forward to your reply.

Regards,
Florian
 

ArshilAhmad

Moderator
Staff member
Hi @florian_,

Please create a short screen recording showing the code running in an online compiler. Then, copy the same code and demonstrate it not running in Code by Pabbly. Additionally, please share the Workflow URL in which you have this concern.
 

florian_

Member
Hi,
I was able to identify where the problem was. Please take a look at the following code:
let startTimes = [];
let endTimes = [];
for (let i = 0; i < data_json.length; i++) {
startTimes.push(new Date(data_json['start']['dateTime']));
}.

So here i have a piece of code that iterares through a json data, and captures the value of ['start']['dateTime'] keys. The format at which value of dateTime is presented in the this key is ex. 2024-04-17T09:00:00+02:00, so iso 8601 format in string type. When this code captures this info and turns it into date, it returns the same date in another timezone, so gmt +0000. I want to be having the same time and retain the timezone. So to again the problem is that, if value is 2024-04-17T09:00:00+02:00, i get returned 17 April 07:00 oclock gmt +0000.

I must say that wheb i run the same code locally this does not happen, so id guess is something with the environment.

Id really appreciate your help here.
 

ArshilAhmad

Moderator
Staff member
Kindly create a short screen recording showing the code running in an online compiler and it not running in Code by Pabbly.
 
Top