-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Labels
externalpartnerIssue or Request from a partner teamIssue or Request from a partner teampartner/maciosIssues for the Mac / iOS SDKIssues for the Mac / iOS SDKplatform/iost/bugSomething isn't workingSomething isn't working
Description
Description
If you compile a .NET MAUI project for iOS, you get the wrong datetime format string for Norwegian output.
If you compile a .NET MAUI project for Windows or Android, you get the correct datetime format string for Norwegian output.
I use dotnet --version 6.0.401
Steps to Reproduce
- Create a new .NET MAUI APP and compile for iOS.
- Anywhere like in 'MauiProgram.cs' do something like:
- var dt = DateTime.Now.ToString( new CultureInfo("nb-NO"));
- dt will look like: 10/1/2022 4:00:28 PM
- dt should look like: 01.10.2022 16:00:286
Link to public reproduction project repository
https://github.com/sith-ikjetil/maui-cultureinfo-no-bug
Version with bug
Unknown/Other (please specify)
Last version that worked well
Unknown/Other
Affected platforms
iOS
Affected platform versions
iOS 15.4
Did you find any workaround?
No response
Relevant log output
No response
Metadata
Metadata
Assignees
Labels
externalpartnerIssue or Request from a partner teamIssue or Request from a partner teampartner/maciosIssues for the Mac / iOS SDKIssues for the Mac / iOS SDKplatform/iost/bugSomething isn't workingSomething isn't working