From 7abae61f049d1ecfa3fdad796cc535173f7f2a92 Mon Sep 17 00:00:00 2001 From: "Yangkai.Shen" <237497819@qq.com> Date: Sun, 19 Jan 2020 10:01:16 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E4=BF=AE=E5=A4=8D=20[BUG#96](https://g?= =?UTF-8?q?ithub.com/xkcoding/spring-boot-demo/issues/96)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit moment.js 格式化问题 --- .../src/main/resources/static/index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spring-boot-demo-websocket-socketio/src/main/resources/static/index.html b/spring-boot-demo-websocket-socketio/src/main/resources/static/index.html index 1e6db31..a2d4492 100644 --- a/spring-boot-demo-websocket-socketio/src/main/resources/static/index.html +++ b/spring-boot-demo-websocket-socketio/src/main/resources/static/index.html @@ -84,7 +84,7 @@ function sendBroadcast() { axios.post('/demo/send/broadcast', { - message: '系统广播通知: 当前时间 ' + moment().format('YYYY-MM-dd HH:mm:ss.SSS') + message: '系统广播通知: 当前时间 ' + moment().format('YYYY-MM-DD HH:mm:ss.SSS') }).then((response) => { const {flag, message} = response.data; if (flag) { @@ -156,7 +156,7 @@ } function output(message) { - let currentTime = "" + moment().format('YYYY-MM-dd HH:mm:ss.SSS') + ""; + let currentTime = "" + moment().format('YYYY-MM-DD HH:mm:ss.SSS') + ""; let element = $("
" + currentTime + " " + message + "
"); $('#console').prepend(element); } @@ -179,4 +179,4 @@ - \ No newline at end of file +