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:
parent
61e920d010
commit
d6655135e4
|
@ -197,7 +197,7 @@ 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"
|
||||||
//add 1 to month as getmonth returns the position not the actual month
|
//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"];
|
var typeLabels = ["default", "1", "object", "text", "bytes", "map", "stream", "embedded"];
|
||||||
|
|
Loading…
Reference in New Issue