ARTEMIS-2805 wrong day-of-month in web console

The web console displays the day of the week instead of the day of the
month in the timestamp column while browsing a queue from the web
console. This commit fixes this by calling the getDate method instead of
the getDay method on the date object.
This commit is contained in:
avi5kdonrh 2020-06-12 19:05:27 +05:30 committed by Justin Bertram
parent 61e920d010
commit d6655135e4
1 changed files with 1 additions and 1 deletions

View File

@ -197,7 +197,7 @@ var ARTEMIS = (function(ARTEMIS) {
var d = new Date(timestamp);
// "yyyy-MM-dd HH:mm:ss"
//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());
return d.getFullYear() + "-" + pad2(d.getMonth() + 1) + "-" + pad2(d.getDate()) + " " + pad2(d.getHours()) + ":" + pad2(d.getMinutes()) + ":" + pad2(d.getSeconds());
}
var typeLabels = ["default", "1", "object", "text", "bytes", "map", "stream", "embedded"];