-
Notifications
You must be signed in to change notification settings - Fork 743
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Improve DateTimeFormatter template matching and mappings #19099
base: master
Are you sure you want to change the base?
fix: Improve DateTimeFormatter template matching and mappings #19099
Conversation
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-19099/index.html |
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-19099/index.html |
The build 150482 found UI Test snapshots differences: Details
|
GitHub Issue (If applicable): closes #18975
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Currently the returned values for Time are very off from what they are supposed to compared to WinUI.
What is the new behavior?
The logic for DateTimeFormatter has been improved to prioritize keys by length, starting with the longest. Previously, the Lookup dictionary had to be manually ordered, which could lead to issues. Additional mapping values have been added based on Microsoft documentation, and the dictionary has been cleaned up for better readability. A runtime test has also been added.
PR Checklist
Please check if your PR fulfills the following requirements:
Screenshots Compare Test Run
results.