Show the time as well as the date, using the shared formatter
This commit is contained in:
parent
ca5c25ef14
commit
a2095eb806
1 changed files with 3 additions and 5 deletions
|
|
@ -39,11 +39,9 @@ var LABEL = {
|
||||||
failed: ["failed", "Did not work"]
|
failed: ["failed", "Did not work"]
|
||||||
};
|
};
|
||||||
|
|
||||||
function when(s) {
|
// when() lives in app.js and includes the time. A local copy here used to
|
||||||
if (!s) return "";
|
// shadow it and print the date alone, which makes several videos made on one
|
||||||
var d = new Date(s);
|
// day impossible to tell apart.
|
||||||
return isNaN(d) ? s : d.toLocaleDateString(undefined, { year: "numeric", month: "short", day: "numeric" });
|
|
||||||
}
|
|
||||||
|
|
||||||
function card(p) {
|
function card(p) {
|
||||||
var st = LABEL[p.status] || ["submitted", p.status || "In the queue"];
|
var st = LABEL[p.status] || ["submitted", p.status || "In the queue"];
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue