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

[Android / iOS ] Native DatePicker and CalendarDatePicker flyout opens 100 years in the past instead of today #19505

Open
KikkoMax opened this issue Feb 11, 2025 · 1 comment · Fixed by #19519
Assignees
Labels
area/date-time-pickers DatePicker, TimePicker, CalendarDatePicker... difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. kind/bug Something isn't working

Comments

@KikkoMax
Copy link

KikkoMax commented Feb 11, 2025

Current behavior

Native date picker on Android and iOS opens 100 years in the past by default.

Calendar date picker opens 100 years in the past for iOS by default.

Expected behavior

Calendar flyouts should open with today as the default date.

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

  1. Build and start app
  2. Open native date picker
  3. Observe year is 1925 instead of 2025
  4. Open managed date picker
  5. Observe correct behavior, year is 2025
  6. Open calendar date picker
  7. Observe year is 1925 instead of 2025 for iOS, but 2025 on android

DatePickerBug.zip

Workaround

Using the managed date picker works around the problem but this results in a different UX.

Works on UWP/WinUI

Yes

Environment

Uno.WinUI / Uno.WinUI.WebAssembly / Uno.WinUI.Skia

NuGet package version(s)

Uno.WinUI 5.6.33 (sdk 5.6.22)

Affected platforms

Android, iOS

IDE

Visual Studio 2022

IDE version

17.12.4

Relevant plugins

JetBrains ReSharper 2024.3.5

Anything else we need to know?

No response

@KikkoMax KikkoMax 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 Feb 11, 2025
@MartinZikmund MartinZikmund self-assigned this Feb 11, 2025
@jeromelaban jeromelaban added area/date-time-pickers DatePicker, TimePicker, CalendarDatePicker... and removed triage/untriaged Indicates an issue requires triaging or verification labels Feb 11, 2025
@agneszitte
Copy link
Contributor

agneszitte commented Feb 20, 2025

@MartinZikmund I am re-opening this issue as I am still able to reproduce it with latest Uno.Sdk 5.6.36 for the CalendarDatePicker for iOS.

*(For managed DatePicker I also noticed a separate issue for iOS, which will be tracked with #19567)

Image


Tested with:

  • Templates/SDK: 5.6.36
  • VS version: VS 2022 (64-bit) - Version 17.13.1
  • VS VSIX: 5.6.31
  • Issue19505.zip
  • Platform(s):
    • ✅ WinAppSdk
    • ✅ Android
    • ❌ iOS
    • ✅WebAssembly
    • ✅Desktop
    • ✅Desktop WSL
  • OS: Windows

@agneszitte agneszitte reopened this Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/date-time-pickers DatePicker, TimePicker, CalendarDatePicker... difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants