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

CalendarDatePicker displays date in a strange format on android if DateFormat is used #18717

Closed
DavidM29 opened this issue Nov 6, 2024 · 3 comments · Fixed by #18948
Closed
Assignees
Labels
difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification

Comments

@DavidM29
Copy link

DavidM29 commented Nov 6, 2024

Current behavior

If DateFormat is set on CalendarDatePicker, the date is displayed strangely on android. Works correctly on windows.
image

Expected behavior

Date should be displayed on android as it is displayed on windows.

How to reproduce it (as minimally and precisely as possible)

  • Add CalendarDatePicker on a page.
  • Set DateFormat, for example DateFormat="{}{day.integer}/{month.integer}/{year.full}".
  • Choose any date on android.

Here is the small repro project:
UnoApp1.zip

Workaround

Have not found any workarounds.

Works on UWP/WinUI

Yes

Environment

No response

NuGet package version(s)

No response

Affected platforms

Android

IDE

Visual Studio 2022

IDE version

17.11.4

Relevant plugins

No response

Anything else we need to know?

No response

@DavidM29 DavidM29 added difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification labels Nov 6, 2024
@morning4coffe-dev morning4coffe-dev self-assigned this Nov 9, 2024
@morning4coffe-dev
Copy link
Member

@DavidM29 I've confirmed this issue, thank you for reporting it! It is happening only when using .integer on day and month on all Uno targets. I've created a PR #18948 which should fix this issue.

@DavidM29
Copy link
Author

Hello @morning4coffe-dev, tested this on latest Uno.Sdk (5.5.56) and it looks same as before. When will this fix be available?

@morning4coffe-dev
Copy link
Member

@DavidM29 I think it will be available on 5.6+, can you try with Uno.Sdk 5.6.0-dev.298? I have also opened a follow-up PR which will also address time formatting issues #19099

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants