Browse Source
Merge pull request #19821 from abpframework/auto-merge/prerel-8-2/2717
Merge branch dev with prerel-8.2
pull/19832/head
maliming
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
3 additions and
1 deletions
-
npm/ng-packs/packages/theme-shared/src/lib/adapters/time.adapter.ts
|
|
|
@ -21,7 +21,9 @@ export class TimeAdapter extends NgbTimeAdapter<string | Date> { |
|
|
|
} |
|
|
|
|
|
|
|
toModel(value: NgbTimeStruct | null): string { |
|
|
|
if (!value) return ''; |
|
|
|
if (!value) { |
|
|
|
return null; |
|
|
|
} |
|
|
|
|
|
|
|
const date = new Date(0, 0, 1, value.hour, value.minute, value.second); |
|
|
|
const formattedDate = formatDate(date, 'HH:mm:ss', 'en'); |
|
|
|
|