Skip to content

Android TimePicker ignores 24 hour system setting when using Format Property #28784

@RpDoc-Christian

Description

@RpDoc-Christian

Description

When you use a TimePicker in Android and set the Format Property, the picker opens and shows the dialog for getting the clock values in AM/PM style, even if the phone is set to 24 hour time format.

Steps to Reproduce

Create MAUI .NET 9 App

Add to page a TimePicker with setting the Format Property in XAML.

Compile the app to an Android 15 phone whe the hour setting is 24 hours (no am or pm).

Start the app and open the TimePicker, the clock shows AM and PM.

When you use a TimePicker without the Format Property it works in 24 hour Mode.

Link to public reproduction project repository

https://github.com/RpDoc-Christian/MauiAndroidTimePickerBug.git

Version with bug

9.0.50 SR5

Is this a regression from previous behavior?

No, this is something new

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

Android 15

Did you find any workaround?

No response

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions