Commit 56641b8d authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Allow 1s slack for long time display.

parent aae6b460
...@@ -1237,7 +1237,7 @@ function formatLines(lines) { ...@@ -1237,7 +1237,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 >= 0) if(delta > -1000)
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