From 56641b8d84f36c51146558fb4299e64ce7a5cde3 Mon Sep 17 00:00:00 2001 From: Juliusz Chroboczek Date: Wed, 28 Oct 2020 18:00:48 +0100 Subject: [PATCH] Allow 1s slack for long time display. --- static/sfu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/sfu.js b/static/sfu.js index 84f9898..ec9702a 100644 --- a/static/sfu.js +++ b/static/sfu.js @@ -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(); }