Add "CurrentTime" with HH:mm:ss in a Date field

Add "CurrentTime" with HH:mm:ss in a Date field

Hello guys,

As the title implies I'm trying to fill a certain field with Current Time data on our Bugtracker, nevertheless all we currently get to work is the Current Date Tag so I was wondering if anyone could lend me and hand a modify this Custom Function accordingly to get the Hours, Minutes at least.

projectsDomainURL = " https://projects.zoho.com/";
portalId = "xxxxxxxxxx";
// portal Id correction done.
projectId = "xxxxxxxxxxxxxxxxxxx";
authToken = "xxxxxxxxxxxxxxxxxxxxxxx";
dateFieldParamName = "NDATE7";
currentDate = zoho.currenttime.toString("MM-dd-yyyy","GMT");
info currentDate;
updateBugURL = projectsDomainURL + "/restapi/portal/" + portalId + "/projects/" + projectId + "/bugs/" + currentIssueId + "/";
updateBugParams = Map();
updateBugParams.put(dateFieldParamName,currentDate);
updateBugParams.put("authtoken",authToken);
updateBugDateResponse = invokeurl
[
    url :updateBugURL
    type :POST
    parameters:updateBugParams
];
info updateBugDateResponse;


Thanks in advance !!
Have a great day