ARTEMIS-3124 readability for 'Expires' when browsing via console

This commit is contained in:
Justin Bertram 2021-02-17 13:12:13 -06:00 committed by Clebert Suconic
parent f451c42d22
commit 3296d431cf
1 changed files with 3 additions and 0 deletions

View File

@ -425,6 +425,9 @@ var Artemis;
if (isNaN(timestamp)) {
return timestamp;
}
if (timestamp == 0) {
return "never";
}
var expiresIn = timestamp - Date.now();
if (Math.abs(expiresIn) < MS_PER_DAY) {
var duration = expiresIn < 0 ? -expiresIn : expiresIn;