mirror of
https://github.com/jech/galene.git
synced 2024-11-10 02:35:58 +01:00
Allow 30s slack for message times in the future.
This commit is contained in:
parent
7ee8cbc45a
commit
49ade2f66f
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue