Skip to content

Unable to select any hours before noon when TimePickerModal is in 24-hour clock mode #132

@gbarany

Description

@gbarany

I'm unable to select any hour before noon when TimePickerModal is in 24-hour clock mode (e.g. locale is de).
Only hours after 12 noon can be selected. Issue can be reproduced by changing the locale prop to "de" in the Time picker sample code:

<TimePickerModal
   visible={visible}
   onDismiss={onDismiss}
   onConfirm={onConfirm}
   hours={12} // default: current hours
   minutes={14} // default: current minutes
   label="Select time" // optional, default 'Select time'
   uppercase={false} // optional, default is true
   cancelLabel="Cancel" // optional, default: 'Cancel'
   confirmLabel="Ok" // optional, default: 'Ok'
   animationType="fade" // optional, default is 'none'
   locale="de"
/>

I've tested this with release 0.8.4 on iOS and web.

Simulator Screen Recording - iPhone 11 - 2022-01-13 at 15 53 06

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions