Skip to content

Commit

Permalink
ARTEMIS-2805 wrong day-of-month in web console
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
avi5kdonrh authored and jbertram committed Jun 15, 2020
1 parent 61e920d commit d665513
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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"];
Expand Down

0 comments on commit d665513

Please sign in to comment.