You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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://private-user-images.githubusercontent.com/7712159/346076296-57a29a0c-77a3-49fd-aef0-3ed84d74fea7.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE4MTY3ODcsIm5iZiI6MTcyMTgxNjQ4NywicGF0aCI6Ii83NzEyMTU5LzM0NjA3NjI5Ni01N2EyOWEwYy03N2EzLTQ5ZmQtYWVmMC0zZWQ4NGQ3NGZlYTcucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcyNCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MjRUMTAyMTI3WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9N2E4MzlmMzJkMmQ0M2VmYjc5NTliNWEwZDdlODUzMjkzYWVhNjIzZTY0MGQ1NzZlYjExNWYwMTllOGU4MTM3MiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.BdFi9MbkfmCCYBWilZOha7Cs3X-unYWCVfa6Qmn_zow)
Versions (please complete the following information):
Sample code
GitHub repo
N/A
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: