runtime: Inconsistent CultureInfo.DateTimeFormat.ShortestDayName between server/wasm
Describe the bug
I used CultureInfo.DateTimeFormat.ShortestDayNames in blazor project. While using en-US culture, It returns different values when using server side project or wasm project.
In wasm it returns single letter “S M T W T F S” In server-side it returns double letters “Su Mo Tu We Th Fr Sa”
This is probably a problem of mono runtime.
To Reproduce
- Create template project for Blazor server/wasm projects respectively
- Output DateTimeFormat.ShortestDayNames for CultureInfo en-US
Exceptions (if any)
Further technical details
- ASP.NET Core version
- Include the output of
dotnet --info
.NET Core SDK (reflecting any global.json):
Version: 5.0.100-preview.1.20155.7
Commit: 1c44853056
Runtime Environment:
OS Name: Windows
OS Version: 10.0.18363
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\5.0.100-preview.1.20155.7\
- The IDE (VS / VS Code/ VS4Mac) you’re running on, and it’s version
Visual Studio Community 2019 16.6.1
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 17 (16 by maintainers)
We are looking into fixing this for .NET5 release