From 296269d66db1721249f3b3fa8dd189385e6eaa0f Mon Sep 17 00:00:00 2001 From: augushong Date: Sat, 15 Aug 2026 10:48:15 +0800 Subject: [PATCH] =?UTF-8?q?fix(admin):=20=E4=BF=AE=E5=A4=8D=E5=91=BD?= =?UTF-8?q?=E4=B8=AD=E8=AE=B0=E5=BD=95=E9=A1=B5=E6=97=B6=E9=97=B4=E6=B8=B2?= =?UTF-8?q?=E6=9F=93=E4=BE=9D=E8=B5=96=E4=B8=8D=E5=AD=98=E5=9C=A8=E7=9A=84?= =?UTF-8?q?=20API?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/view/xhprof/run_watch/index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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) {