mirror of
https://github.com/jech/galene.git
synced 2024-11-23 00:55:58 +01:00
Allow 1s slack for long time display.
This commit is contained in:
parent
aae6b460f7
commit
56641b8d84
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue