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

Aberta
#782 0 comentários 2 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
3/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
45/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Estagnada
Stack de tecnologia
javascript, react-native
Domínio
mobile

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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"
Linguagem predominante
JavaScript
Estrelas
2.9k
Forks
459
Merge médio
4d 16h
PRs com merge (30d)
5

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de react-native-datetimepicker/datetimepicker

Todas as issues de react-native-datetimepicker/datetimepicker

Issues semelhantes

Mais issues de JavaScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.