Skip to content

Commit bb9da40

Browse files
committedFeb 25, 2022
[frontend] correct ticks for month bucket
1 parent e95e5c2 commit bb9da40

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎frontend/express/public/javascripts/countly/countly.common.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -2673,10 +2673,11 @@
26732673
}
26742674
else {
26752675
if (_period === "day") {
2676+
start.add(1, 'days');
26762677
for (i = 0; i < new Date(start.year(), start.month(), 0).getDate(); i++) {
2677-
start.add(1, 'days');
26782678
ticks.push([i, countlyCommon.formatDate(start, "D MMM")]);
26792679
tickTexts[i] = countlyCommon.formatDate(start, "D MMM, dddd");
2680+
start.add(1, 'days');
26802681
}
26812682
}
26822683
else {

0 commit comments

Comments
 (0)
Please sign in to comment.