This commit is contained in:
Clebert Suconic 2020-06-01 09:27:39 -04:00
commit 7bda41259a
1 changed files with 2 additions and 1 deletions

View File

@ -196,7 +196,8 @@ var ARTEMIS = (function(ARTEMIS) {
} }
var d = new Date(timestamp); var d = new Date(timestamp);
// "yyyy-MM-dd HH:mm:ss" // "yyyy-MM-dd HH:mm:ss"
return d.getFullYear() + "-" + pad2(d.getMonth()) + "-" + pad2(d.getDay()) + " " + pad2(d.getHours()) + ":" + pad2(d.getMinutes()) + ":" + pad2(d.getSeconds()); //add 1 to month as getmonth returns the position not the actual month
return d.getFullYear() + "-" + pad2(d.getMonth() + 1) + "-" + pad2(d.getDay()) + " " + pad2(d.getHours()) + ":" + pad2(d.getMinutes()) + ":" + pad2(d.getSeconds());
} }
var typeLabels = ["default", "1", "object", "text", "bytes", "map", "stream", "embedded"]; var typeLabels = ["default", "1", "object", "text", "bytes", "map", "stream", "embedded"];