File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
frontend/express/public/javascripts/countly Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 1893
1893
}
1894
1894
}
1895
1895
else {
1896
+ var startYear = start . year ( ) ;
1897
+ var endYear = moment ( ) . year ( ) ;
1896
1898
for ( var i = 0 ; i < days ; i ++ ) {
1897
1899
start . add ( 1 , 'days' ) ;
1898
- ticks . push ( [ i , countlyCommon . formatDate ( start , "D MMM" ) ] ) ;
1899
- tickTexts [ i ] = countlyCommon . formatDate ( start , "D MMM, dddd" ) ;
1900
+ if ( startYear < endYear ) {
1901
+ ticks . push ( [ i , countlyCommon . formatDate ( start , "D MMM YYYY" ) ] ) ;
1902
+ tickTexts [ i ] = countlyCommon . formatDate ( start , "D MMM YYYY, dddd" ) ;
1903
+ }
1904
+ else {
1905
+ ticks . push ( [ i , countlyCommon . formatDate ( start , "D MMM" ) ] ) ;
1906
+ tickTexts [ i ] = countlyCommon . formatDate ( start , "D MMM, dddd" ) ;
1907
+ }
1900
1908
}
1901
1909
}
1902
1910
}
You can’t perform that action at this time.
0 commit comments