Skip to content

Commit 47f10bd

Browse files
committed
Merge branch 'master' into next
2 parents 8255ebd + 957adfd commit 47f10bd

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
@@ -2243,7 +2243,8 @@
22432243

22442244
for (i = 0; i < allWeeks.length; i++) {
22452245
var parts = allWeeks[i].split(" ");
2246-
if (parseInt(parts[1]) === moment().isoWeekYear(parseInt(parts[1])).isoWeek(parseInt(parts[0])).isoWeekday(1).year()) {
2246+
//iso week falls in the year which has thursday of the week
2247+
if (parseInt(parts[1]) === moment().isoWeekYear(parseInt(parts[1])).isoWeek(parseInt(parts[0])).isoWeekday(4).year()) {
22472248
ticks.push([i, "W" + allWeeks[i]]);
22482249

22492250
var weekText = countlyCommon.formatDate(moment().isoWeekYear(parseInt(parts[1])).isoWeek(parseInt(parts[0])).isoWeekday(1), ", D MMM YYYY");

0 commit comments

Comments
 (0)