robustness fix

This commit is contained in:
Ziver Koc 2024-03-22 01:41:40 +01:00
parent 1d8b26998a
commit e39f282abf
3 changed files with 5 additions and 4 deletions

View file

@ -51,6 +51,9 @@ $.fn.relTimestamp = function() {
// Converts all timestamps to human readable time and date
function getRelTimestamp(timestamp) {
if (timestamp == null)
return "";
let timestampNow = Date.now();
let timeDiff = timestampNow - timestamp;