File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
projects/igniteui-angular/src/lib/grids/pivot-grid Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -126,6 +126,8 @@ export class IgxPivotDateDimension implements IPivotDimension {
126
126
private _resourceStrings = CurrentResourceStrings . GridResStrings ;
127
127
private _baseDimension : IPivotDimension ;
128
128
private _options : IPivotDateDimensionOptions = { } ;
129
+ private _monthIntl = new Intl . DateTimeFormat ( 'default' , { month : 'long' } ) ;
130
+
129
131
/**
130
132
* Creates additional pivot date dimensions based on a provided dimension describing date data:
131
133
*
@@ -156,7 +158,7 @@ export class IgxPivotDateDimension implements IPivotDimension {
156
158
memberName : 'Months' ,
157
159
memberFunction : ( rec ) => {
158
160
const recordValue = PivotUtil . extractValueFromDimension ( inBaseDimension , rec ) ;
159
- return recordValue ? new Date ( recordValue ) . toLocaleString ( 'default' , { month : 'long' } ) : rec [ 'Months' ] ;
161
+ return recordValue ? this . _monthIntl . format ( new Date ( recordValue ) ) : rec [ 'Months' ] ;
160
162
} ,
161
163
enabled : true ,
162
164
childLevel : baseDimension
You can’t perform that action at this time.
0 commit comments