File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
projects/igniteui-angular/src/lib/grids/pivot-grid Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ export interface IPivotDateDimensionOptions {
4747export class IgxPivotDateDimension implements IPivotDimension {
4848 /** Enables/Disables a particular dimension from pivot structure. */
4949 public enabled = true ;
50-
50+
5151 /**
5252 * Gets/Sets data type
5353 */
@@ -80,6 +80,7 @@ export class IgxPivotDateDimension implements IPivotDimension {
8080 /** @hidden @internal */
8181 public memberName = 'AllPeriods' ;
8282 private _resourceStrings = CurrentResourceStrings . GridResStrings ;
83+ private _monthIntl = new Intl . DateTimeFormat ( 'default' , { month : 'long' } ) ;
8384
8485 /**
8586 * Creates additional pivot date dimensions based on a provided dimension describing date data:
@@ -108,7 +109,7 @@ export class IgxPivotDateDimension implements IPivotDimension {
108109 memberName : 'Months' ,
109110 memberFunction : ( rec ) => {
110111 const recordValue = PivotUtil . extractValueFromDimension ( inBaseDimension , rec ) ;
111- return recordValue ? new Date ( recordValue ) . toLocaleString ( 'default' , { month : 'long' } ) : rec [ 'Months' ] ;
112+ return recordValue ? this . _monthIntl . format ( new Date ( recordValue ) ) : rec [ 'Months' ] ;
112113 } ,
113114 enabled : true ,
114115 childLevel : baseDimension
You can’t perform that action at this time.
0 commit comments