Explorar o código

[bugfix] timestamps are expressed in seconds in ts parameters

B Thibault %!s(int64=9) %!d(string=hai) anos
pai
achega
ae1a575b68
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      cli/ui.js

+ 1 - 1
cli/ui.js

@@ -139,7 +139,7 @@ function doCreateMessageDom(channelId, msg, skipAttachment) {
     authorName.className = R.klass.msg.authorname;
     hover.className = R.klass.msg.hover.container;
     hoverReply.className = R.klass.msg.hover.reply;
-    ts.innerHTML = formatDate(msg.ts * 1000);
+    ts.innerHTML = formatDate(msg.ts);
     text.innerHTML = formatSlackText(msg.raw["text"] || "");
     authorName.textContent = sender ? sender.name : (msg.raw["username"] || "?");
     if (!sender && !msg.raw["username"])