Skip to content

Commit 6d6c7e1

Browse files
authored
fix(charts): handle last week of the year properly during format (#1136)
1 parent aa057e2 commit 6d6c7e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/line-stat-getter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ ${groupByDateFieldFormated}), 'yyyy-MM-dd 00:00:00')`);
145145
function getFormat() {
146146
switch (timeRange) {
147147
case 'day': return 'DD/MM/YYYY';
148-
case 'week': return '[W]W-YYYY';
148+
case 'week': return '[W]W-GGGG';
149149
case 'month': return 'MMM YY';
150150
case 'year': return 'YYYY';
151151
default: return null;

0 commit comments

Comments
 (0)