From 49ade2f66fc4d16debe3d68dd34c49c1e9ef29ba Mon Sep 17 00:00:00 2001 From: Juliusz Chroboczek Date: Thu, 5 Nov 2020 21:09:16 +0100 Subject: [PATCH] Allow 30s slack for message times in the future. --- static/sfu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/sfu.js b/static/sfu.js index 741a6cb..ab89bbd 100644 --- a/static/sfu.js +++ b/static/sfu.js @@ -1248,7 +1248,7 @@ function formatLines(lines) { function formatTime(time) { let delta = Date.now() - time; let date = new Date(time); - if(delta > -1000) + if(delta > -30000) return date.toTimeString().slice(null, 8); return date.toLocaleString(); }