Browse Source

UI: refactoring

pull/7092/head
Artem Dzhereleiko 4 years ago
parent
commit
031c7fe3ef
  1. 2
      ui-ngx/src/app/shared/adapter/custom-datatime-adapter.ts

2
ui-ngx/src/app/shared/adapter/custom-datatime-adapter.ts

@ -21,7 +21,7 @@ import { NativeDatetimeAdapter } from '@mat-datetimepicker/core';
@Injectable()
export class CustomDateAdapter extends NativeDatetimeAdapter {
parse(value: string, parseFormat: any): any {
parse(value: string): Date {
if (typeof value === 'number') {
return new Date(value);
}

Loading…
Cancel
Save