Skip to content

Commit 6c03c0c

Browse files
committed
fix(query-builder): Replace use of deprecated DatePipe with Intl.
1 parent ca3a2cf commit 6c03c0c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

projects/igniteui-angular/src/lib/query-builder/query-builder-tree.component.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
Output,
66
TemplateRef
77
} from '@angular/core';
8-
import { NgTemplateOutlet, NgClass, DatePipe } from '@angular/common';
8+
import { NgTemplateOutlet, NgClass } from '@angular/common';
99
import { Inject } from '@angular/core';
1010
import {
1111
Component, Input, ViewChild, ChangeDetectorRef, ViewChildren, QueryList, ElementRef, OnDestroy, HostBinding
@@ -56,6 +56,7 @@ import { IgxQueryBuilderDragService } from './query-builder-drag.service';
5656
import { isTree } from '../data-operations/expressions-tree-util';
5757
import { ExpressionGroupItem, ExpressionItem, ExpressionOperandItem, IgxFieldFormatterPipe } from './query-builder.common';
5858
import { getCurrentI18n, IResourceChangeEventArgs } from 'igniteui-i18n-core';
59+
import { IgxDateFormatterPipe } from '../grids/common/pipes';
5960

6061
const DEFAULT_PIPE_DATE_FORMAT = 'mediumDate';
6162
const DEFAULT_PIPE_TIME_FORMAT = 'mediumTime';
@@ -69,7 +70,7 @@ const DEFAULT_CHIP_FOCUS_DELAY = 50;
6970
templateUrl: './query-builder-tree.component.html',
7071
host: { 'class': 'igx-query-builder-tree' },
7172
imports: [
72-
DatePipe,
73+
IgxDateFormatterPipe,
7374
FormsModule,
7475
IgxButtonDirective,
7576
IgxCheckboxComponent,

0 commit comments

Comments
 (0)