telerik / kendo-angular

Issue tracker - Kendo UI for Angular
http://www.telerik.com/kendo-angular-ui/
Other
466 stars 215 forks source link

[TimePicker] Incorrect AM/PM format from v14 #4373

Closed mbechev closed 3 days ago

mbechev commented 1 month ago

Describe the bug In v13, the AM/PM format was automatically determined from the inserted time. The AM was also displayed by default when the TimePicker has no value:

image

Here is an example:

https://stackblitz.com/edit/angular-unihfz

Since v14, the default is AM/PM which remains until the user focuses on this segment and changes it to either AM or PM. The component no longer detects the time and ends up in a situation where it displays a possible AM format while the insert time is 22:00:

image

The user can also leave the inserted time as the image above shows which is incorrect due to the AM/PM existing simultaneously.

https://stackblitz.com/edit/angular-unihfz-7fwf3i

Expected behavior The AM/PM format needs to behave as in v13 - automatically determine the AM/PM, ensuring the validity of the inserted time.

mbechev commented 2 weeks ago

In addition, since v14 if we focus the AM/PM part and insert 0, the number is displayed instead of being ignored:

image
Raisolution commented 3 days ago

Fixed in v. 16.9.0