DateTime Field won't update

DateTime Field won't update

I'm running the following code in a custom function. The Due Date field is of the DateTime type, as should be the value returned by zoho.currenttime.

I've tried setting the Due Date field to various values but it won't update with any of them.

  1. Id = myLeadId.toLong();
  2. customMap = Map();
  3. customMap.put("Due Date", zoho.currenttime);
  4. updateResponse = zoho.crm.update("Leads",Id,customMap);