Store message date in addMessage

This commit is contained in:
Simon Ser 2020-06-24 17:16:49 +02:00
parent cbe76ab824
commit 9223953e3a
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
2 changed files with 13 additions and 6 deletions

View file

@ -24,11 +24,7 @@ function Nick(props) {
function LogLine(props) {
var msg = props.message;
var date = new Date();
if (msg.tags["time"]) {
date = new Date(msg.tags["time"]);
}
var date = new Date(msg.tags["time"]);
var timestamp = date.toLocaleTimeString(undefined, {
timeStyle: "short",
hour12: false,