Commit 49ade2f6 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Allow 30s slack for message times in the future.

parent 7ee8cbc4
...@@ -1248,7 +1248,7 @@ function formatLines(lines) { ...@@ -1248,7 +1248,7 @@ function formatLines(lines) {
function formatTime(time) { function formatTime(time) {
let delta = Date.now() - time; let delta = Date.now() - time;
let date = new Date(time); let date = new Date(time);
if(delta > -1000) if(delta > -30000)
return date.toTimeString().slice(null, 8); return date.toTimeString().slice(null, 8);
return date.toLocaleString(); return date.toLocaleString();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment