dotnet / dotnet/maui

Culture settings not working in timepicker

Open
#12,423 8 comments 1 reaction 0 assignees View on GitHub
area-controls-datetimepicker platform/android platform/windows s/triaged s/verified t/bug
Dominant language
C#
Stars
23.3k
Forks
2k
Avg merge
1d 15h
Merged PRs (30d)
290

Description

### Description

The input for time picker always shows the Amercan time format with PM and AM and not for example the German one.
The images show the Windows and Android UIs

![TimePickerInputOnGermanAndroid](https://user-images.githubusercontent.com/1506961/210740144-d095e365-0af6-471f-b745-b438b1e24484.png)
TimePickerInputUIOnGermanWindows
TimePickerInputOnGermanWindows

### Steps to Reproduce

1. Create a new MAUI default app.
2. Add a TimePicker control
3. Start the app in a German environment.

### Link to public reproduction project repository

https://github.com/FrankPohl/InputTest.git

### Version with bug

7.0 (current)

### Last version that worked well

Unknown/Other

### Affected platforms

Android, Windows

### Affected platform versions

Windows SDK 10.0.19041.0 and Android Framework 29.0

### Did you find any workaround?

No workaround found.
Setting the UI and/or Thread culture in code behind does not help. Setting the Format property doesn't help either.

### Relevant log output

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by running the linked InputTest reproduction project in a German environment with a MAUI TimePicker on Android and Windows. Compare the control's displayed time format with the German platform UI; the issue is done when the TimePicker no longer defaults to AM/PM formatting in that locale.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, csharp
Domain
desktop-dev, frontend, mobile-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.