mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-09-30 22:09:35 +02:00
chore: improve queue admin
This commit is contained in:
1 parent
55d1d38452
commit
14f1d7a246
2 files changed
+55
-3
No files matched your search
@@ -153,7 +153,7 @@ angular
|
||||
}
|
||||
if (seconds instanceof Date)
|
||||
seconds = Math.round((Date.now() - seconds) / 1000);
|
||||
if (typeof seconds == "string")
|
||||
if (typeof seconds == "string" || typeof seconds == "number")
|
||||
seconds = Math.round((Date.now() - new Date(seconds)) / 1000);
|
||||
var suffix = seconds < 0 ? "from now" : "ago";
|
||||
|
||||
|
||||
Reference in new issue
Block a user