ARTEMIS-2786 - fix month in browse console

https://issues.apache.org/jira/browse/ARTEMIS-2786
This commit is contained in:
Andy Taylor 2020-06-01 12:02:31 +01:00
parent e000bd44e8
commit cf9234e95a
1 changed files with 2 additions and 1 deletions

View File

@ -196,7 +196,8 @@ var ARTEMIS = (function(ARTEMIS) {
}
var d = new Date(timestamp);
// "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"];