Skip to content

Visual bug in Time mode when the system language used doesn't have AM and PM as default. #782

Open
@KewtonV

Description

@KewtonV

Bug report

When the system language of the device used does not have AM and PM as the Time default (in my case, the windows are in Portuguese), the visual part is broken, showing empty for AM and a dot " . " for PM.

image

Reproducible sample code

<RNDateTimePicker mode="time" is24Hour={true} />

Steps to reproduce

  1. Change windows language to portuguese.
  2. launch the app with com RNDateTimePicker in Time Mode.
  3. Open the choose time window to see the visual bug.

Describe what you expected to happen:
It should show AM and PM when the windows language doesn't have AM and PM as default or even with the parameter is24Hour assigned as "true" it should show the default of 24h.

Environment info

System:  Windows 10 (Version: 22H2 OS-Build: 19045.3086)
RN-DateTimePicker Version: "7.1.0"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions