From d6655135e47a7bdce12ce78cf60ccf20b6b7e3f4 Mon Sep 17 00:00:00 2001 From: avi5kdonrh Date: Fri, 12 Jun 2020 19:05:27 +0530 Subject: [PATCH] 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. --- .../artemis-plugin/src/main/webapp/plugin/js/browse.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/js/browse.js b/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/js/browse.js index ce408b420f..5dd07b29cb 100644 --- a/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/js/browse.js +++ b/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/js/browse.js @@ -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"];