Show the time as well as the date, using the shared formatter

This commit is contained in:
gator 2026-09-07 12:39:45 +00:00
parent ca5c25ef14
commit a2095eb806

View file

@ -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"];