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

Abierto
#782 0 comentarios 2 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
45/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
javascript, react-native
Área
mobile

Línea de trabajo

Start by tracing the Windows implementation of RNDateTimePicker in time mode and how it handles the is24Hour prop and localized AM/PM labels. Reproduce with Portuguese Windows regional settings using the supplied sample; done when the picker displays the expected 24-hour format or AM/PM labels without empty or dotted markers.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

windows

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"
Lenguaje dominante
JavaScript
Estrellas
2.9k
Forks
459
Merge medio
4 d 16 h
PR fusionados (30 d)
5

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de react-native-datetimepicker/datetimepicker

Todos los issues de react-native-datetimepicker/datetimepicker

Issues similares

Más issues de JavaScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.