robustness fix
This commit is contained in:
parent
1d8b26998a
commit
e39f282abf
3 changed files with 5 additions and 4 deletions
3
hal-core/resources/web/js/hal.js
vendored
3
hal-core/resources/web/js/hal.js
vendored
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue