Custom function mapping incorrect date

Custom function mapping incorrect date

Hello,

I'm trying to debug a custom function that seems to map an input date incorrectly to another field when executed through our ticket blueprint. Here is the test code I'm using:

  1. data = Map();
  2. data.put("cf",{"cf_test_date":activationDate});
  3. info zoho.desk.update(<orgID.>,"tickets",ticketID,data);
I am currently mapping Activation Date to Test Date. When I execute this function through the Deluge editor and type "5 Sep 2024" for Activation Date, it is mapped correctly, so Test Date is also 5 Sep 2024. However, when this function is executed through a ticket blueprint transition, the value of Test Date is always one day behind, so it is 4 Sep 2024. Moreover, a Collision Activity notification appears saying a different person edited the field. Can anyone provide insight into why these things are happening?