diff --git a/public/channels.js b/public/channels.js index 11d58c05..426632d3 100644 --- a/public/channels.js +++ b/public/channels.js @@ -487,7 +487,11 @@ }); // Tick relative timestamps every 30s - timeAgoTimer = setInterval(renderChannelList, 30000); + timeAgoTimer = setInterval(function () { + document.querySelectorAll('.ch-item-time[data-ts]').forEach(function (el) { + el.textContent = timeAgo(el.dataset.ts); + }); + }, 1000); } var timeAgoTimer = null; @@ -548,7 +552,7 @@