You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by cl...@apache.org on 2020/06/01 13:27:47 UTC
[activemq-artemis] branch master updated: ARTEMIS-2786 - fix month
in browse console
This is an automated email from the ASF dual-hosted git repository.
clebertsuconic pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/activemq-artemis.git
The following commit(s) were added to refs/heads/master by this push:
new cf9234e ARTEMIS-2786 - fix month in browse console
new 7bda412 This closes #3156
cf9234e is described below
commit cf9234e95a5d1cffbc4718aa74ba8c088fbb4d5a
Author: Andy Taylor <an...@gmail.com>
AuthorDate: Mon Jun 1 12:02:31 2020 +0100
ARTEMIS-2786 - fix month in browse console
https://issues.apache.org/jira/browse/ARTEMIS-2786
---
artemis-hawtio/artemis-plugin/src/main/webapp/plugin/js/browse.js | 3 ++-
1 file changed, 2 insertions(+), 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 d8185c6..ce408b4 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
@@ -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"];