Change time format

This commit is contained in:
thanhluong 2020-05-22 17:17:16 +00:00
parent d4c203c620
commit 47067d375e

View file

@ -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 = `<li class="message">
<img src="${image}" class="profile-pic">