Skip to content

Commit

Permalink
ARTEMIS-2786 - fix month in browse console
Browse files Browse the repository at this point in the history
  • Loading branch information
andytaylor committed Jun 1, 2020
1 parent e000bd4 commit cf9234e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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"];
Expand Down

0 comments on commit cf9234e

Please sign in to comment.