diff --git a/projects/kit/components/input-time/input-time.component.ts b/projects/kit/components/input-time/input-time.component.ts index a1222b74a528..a39a2976523c 100644 --- a/projects/kit/components/input-time/input-time.component.ts +++ b/projects/kit/components/input-time/input-time.component.ts @@ -256,7 +256,7 @@ export class TuiInputTimeComponent } checkOption(option: TuiTime): void { - if (option.toAbsoluteMilliseconds() === this.value?.toAbsoluteMilliseconds()) { + if (option.valueOf() === this.value?.valueOf()) { this.value = option; } }