Change time format
This commit is contained in:
parent
d4c203c620
commit
47067d375e
1 changed files with 2 additions and 0 deletions
|
@ -36,6 +36,8 @@
|
||||||
|
|
||||||
function loadMessage(content, user, time, messid, image, isNew) {
|
function loadMessage(content, user, time, messid, image, isNew) {
|
||||||
// if (isNew) content = encodeHTML(content)
|
// if (isNew) content = encodeHTML(content)
|
||||||
|
time = new Date(time);
|
||||||
|
time = moment(time).format("HH:mm DD-MM-YYYY");
|
||||||
content = encodeHTML(content);
|
content = encodeHTML(content);
|
||||||
li = `<li class="message">
|
li = `<li class="message">
|
||||||
<img src="${image}" class="profile-pic">
|
<img src="${image}" class="profile-pic">
|
||||||
|
|
Loading…
Reference in a new issue