From 47067d375ef8e512c7fba11f0eae0d2096516fa0 Mon Sep 17 00:00:00 2001 From: thanhluong Date: Fri, 22 May 2020 17:17:16 +0000 Subject: [PATCH] Change time format --- templates/chat/chat.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/chat/chat.html b/templates/chat/chat.html index 9ed5a70..31d8f96 100644 --- a/templates/chat/chat.html +++ b/templates/chat/chat.html @@ -36,6 +36,8 @@ function loadMessage(content, user, time, messid, image, isNew) { // if (isNew) content = encodeHTML(content) + time = new Date(time); + time = moment(time).format("HH:mm DD-MM-YYYY"); content = encodeHTML(content); li = `