1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-12-22 23:35:46 +01:00

Allow 1s slack for long time display.

This commit is contained in:
Juliusz Chroboczek 2020-10-28 18:00:48 +01:00
parent aae6b460f7
commit 56641b8d84

View file

@ -1237,7 +1237,7 @@ function formatLines(lines) {
function formatTime(time) {
let delta = Date.now() - time;
let date = new Date(time);
if(delta >= 0)
if(delta > -1000)
return date.toTimeString().slice(null, 8);
return date.toLocaleString();
}