Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
KewtonV opened this issue Jul 11, 2023 · 0 comments
Labels

Comments

@KewtonV
Copy link

KewtonV commented Jul 11, 2023

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"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants