File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
projects/igniteui-angular/src/lib/date-common/util Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 11import { DateTimeUtil } from './date-time.util' ;
22import { DatePart , DatePartInfo } from '../../directives/date-time-editor/date-time-editor.common' ;
33import { DataType } from '../../data-operations/data-util' ;
4+ import localeBg from "@angular/common/locales/bg" ;
5+ import { registerLocaleData } from '@angular/common' ;
6+
47
58const reduceToDictionary = ( parts : DatePartInfo [ ] ) => parts . reduce ( ( obj , x ) => {
69 obj [ x . type ] = x ;
710 return obj ;
811} , { } ) ;
912
1013describe ( `DateTimeUtil Unit tests` , ( ) => {
14+
15+ registerLocaleData ( localeBg ) ;
16+
1117 describe ( 'Date Time Parsing' , ( ) => {
1218 it ( 'should correctly parse all date time parts (base)' , ( ) => {
1319 let result = DateTimeUtil . parseDateTimeFormat ( 'dd/MM/yyyy HH:mm:ss:SS a' ) ;
You can’t perform that action at this time.
0 commit comments