dotnet / dotnet/maui

TimePicker Does Not Update Its Format When the Culture Is Changed at Runtime

Open
#30,197 1 comment 0 reactions 0 assignees View on GitHub
area-controls-datetimepicker platform/android platform/ios platform/macos platform/windows s/triaged s/verified t/bug
Dominant language
C#
Stars
23.3k
Forks
2k
Avg merge
1d 14h
Merged PRs (30d)
296

Description

### Description

When changing the culture at runtime, the TimePicker control does not immediately update its displayed time format to reflect the new culture. However, once a time is selected from the TimePicker, the displayed time is updated to match the selected culture.

https://github.com/user-attachments/assets/83e4b819-e4a4-4719-90ea-70526b0786c5

### Steps to Reproduce

1. Run the attached sample: [TestingApp.zip](https://github.com/user-attachments/files/20903393/TestingApp.zip)
2. Observe the TimePicker when changing the culture.
3. Try selecting atime from the TimePicker after changing the culture.

### Link to public reproduction project repository

_No response_

### Version with bug

10.0.0-preview.4

### Is this a regression from previous behavior?

Not sure, did not test other versions

### Last version that worked well

Unknown/Other

### Affected platforms

iOS, Android, Windows, macOS

### Affected platform versions

_No response_

### Did you find any workaround?

_No response_

### Relevant log output

```shell

```

Contributor guide

Open the contributing guide

Research direction

Start with the attached TestingApp.zip and reproduce the culture change on the listed platforms. Locate the TimePicker control implementation and its culture/format update path, then verify that the displayed time format changes immediately without selecting a new time.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.