MCPcopy Create free account
hub / github.com/apache/storm / formatErrorTimeSecs

Function formatErrorTimeSecs

storm-webapp/src/main/webapp/js/script.js:269–278  ·  view source on GitHub ↗
(response)

Source from the content-addressed store, hash-verified

267}
268
269function formatErrorTimeSecs(response){
270 if('componentErrors' in response) {
271 var errors = response["componentErrors"];
272 for(var i = 0 ; i < errors.length ; i++){
273 var time = errors[i]['time'];
274 errors[i]['time'] = moment.utc(time).local().format("ddd, DD MMM YYYY HH:mm:ss Z");
275 }
276 }
277 return response;
278}
279
280
281function renderToggleSys(div) {

Callers

nothing calls this directly

Calls 1

formatMethod · 0.65

Tested by

no test coverage detected