Agranom / ngx-material-timepicker

Material desing timepicker for Angular 6.0+
https://agranom.github.io/ngx-material-timepicker/
MIT License
342 stars 139 forks source link

Issue with 24 hr format #451

Closed payyavularajasekharholcim closed 1 year ago

payyavularajasekharholcim commented 1 year ago

Though [format]="24" is used it doesn't work

Agranom commented 1 year ago

Can you provide more details?

payyavularajasekharholcim commented 1 year ago

@Agranom The same UI is rendered though [format]="24" is used

image
Agranom commented 1 year ago

@payyavularajasekharholcim can you provide me with your HTML please (how you initialized timepicker)

payyavularajasekharholcim commented 1 year ago

@Agranom here is the html used

<input class="ct-date-input" formControlName="start_time" placeholder="{{ 'SelectTime' | translate }}" [ngxMatTimepicker]="picker" readonly /> <ngx-mat-timepicker #picker [format]="24">

Agranom commented 1 year ago

@payyavularajasekharholcim you should add [format] to input <input class="ct-date-input" formControlName="start_time" placeholder="{{ 'SelectTime' | translate }}" [ngxMatTimepicker]="picker" [format]="24" readonly /> <ngx-mat-timepicker #picker>

payyavularajasekharholcim commented 1 year ago

@Agranom Thank you very much. Its working fine :-)