Skip to content
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

Wrong Regional Formatting on CalendarDatePicker in packaged app vs unpackaged AppSDK 1.6 #10012

Open
Zulu-Inuoe opened this issue Sep 25, 2024 · 0 comments
Labels
bug Something isn't working needs-triage Issue needs to be triaged by the area owners

Comments

@Zulu-Inuoe
Copy link

Describe the bug

After upgrading to AppSDK 1.6, I found that CalendarDatePicker is now correctly rendering dates according to region settings, but only in an unpackaged app.
In a Packaged app, the regional formatting is incorrectly being pulled from the UI display language, rather than the regional setting.

  • System language is English (United States)
  • Country/Region is United States
  • Regional settings are German (Germany)
  • I've overridden the short date format to YYYY-MM-dd
    image

In a sample app with only a <CalendarDatePicker />, I see different results when running the app packaged vs unpackaged:

Unpackaged (correct):
image

Packaged (incorrect):
image

You can see this incorrect behaviour in the Gallery app, as well
I can reproduce this behaviour both on Windows 10 and Windows 11

Steps to reproduce the bug

Create a CalendarDatePicker

Expected behavior

The picker should display dates in the user's regional formatting (YYYY-MM-dd in this case), whether packaged or unpackaged

Screenshots

Unpackaged (correct):
image

Packaged (incorrect):
image

NuGet package version

WinUI 3 - Windows App SDK 1.6.0: 1.6.240829007

Windows version

Windows 11 (22H2): Build 22621, Windows 10 (21H2): Build 19044

Additional context

No response

@Zulu-Inuoe Zulu-Inuoe added the bug Something isn't working label Sep 25, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-triage Issue needs to be triaged by the area owners
Projects
None yet
Development

No branches or pull requests

1 participant