diff --git a/app/admin/view/xhprof/run_watch/index.js b/app/admin/view/xhprof/run_watch/index.js index e54fdd3..67fc3fb 100644 --- a/app/admin/view/xhprof/run_watch/index.js +++ b/app/admin/view/xhprof/run_watch/index.js @@ -23,7 +23,12 @@ $(function(){ if (isNaN(ts) || ts <= 0) { return '-'; } - return window.UA_CORE.util.toDateString(ts * 1000, 'yyyy-MM-dd HH:mm:ss'); + var dt = new Date(ts * 1000); + var p = function (n) { + return n < 10 ? '0' + n : '' + n; + }; + return dt.getFullYear() + '-' + p(dt.getMonth() + 1) + '-' + p(dt.getDate()) + + ' ' + p(dt.getHours()) + ':' + p(dt.getMinutes()) + ':' + p(dt.getSeconds()); }}, {field: 'ct', title: '命中次数', width: 100, search: 'number_limit'}, {field: 'wt_sum', title: '耗时合计(ms)', width: 140, search: 'number_limit', templet: function(d) {