mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-15 05:53:00 +00:00
Handle NULL created column of api_tokens table
This commit is contained in:
@@ -12,7 +12,7 @@ require(["jquery", "jhapi", "moment"], function($, JHAPI, moment) {
|
||||
// convert ISO datestamps to nice momentjs ones
|
||||
el = $(el);
|
||||
let m = moment(new Date(el.text().trim()));
|
||||
el.text(m.isValid() ? m.fromNow() : "Never");
|
||||
el.text(m.isValid() ? m.fromNow() : el.text());
|
||||
});
|
||||
|
||||
$("#request-token-form").submit(function() {
|
||||
|
Reference in New Issue
Block a user