Describe the bug
TimeInput cannot set time when CultureInfo.CurrentCulture.DateTimeFormat is not what JS expects.
This occurs at least in Finnish Windows locale (where time is presented in H.mm).
To Reproduce
Create Blazor component with TimeInput control
Change System.Globalization.CultureInfo.CurrentCulture and System.Globalization.CultureInfo.CurrentUICulture to Finnish ("fi")
Run component
(Pick time, or type from keyboard)
Current behavior
Control shows '--.--'
Following message is printed in console:
blazor.web.js:1 The specified value "00.00" does not conform to the required format. The format is "HH:mm", "HH:mm:ss" or "HH:mm:ss.SSS" where HH is 00-23, mm is 00-59, ss is 00-59, and SSS is 000-999.
(Specified value reflects to desired value)
Expected behavior
Time should be updated to control and variable
Screenshots
Versions (please complete the following information):
Describe the bug TimeInput cannot set time when CultureInfo.CurrentCulture.DateTimeFormat is not what JS expects. This occurs at least in Finnish Windows locale (where time is presented in H.mm).
To Reproduce
Current behavior
(Specified value reflects to desired value)
Expected behavior Time should be updated to control and variable
Screenshots![BlazorTimePickerLocaleFault](https://github.com/vikramlearning/blazorbootstrap/assets/7712159/57a29a0c-77a3-49fd-aef0-3ed84d74fea7)
Versions (please complete the following information):
Sample code
GitHub repo N/A
Desktop (please complete the following information):