Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

191
Visualizações
Why date show on ios diffrent than show on android in react-native

I'm making a react-native app, but i don't understand how, but on android, the date feel like do not change by what i set.

So i have a function to show date, look like this

const showDate = dateFormat.toLocaleString("default", {
    month: "short",
    day: "2-digit",
  });

So weird that it will display so diffrent on android and ios

For android, it display like this, feel like this function do not effect android:

enter image description here

And here is when it show in ios

enter image description here

The different thing i noiticed is android use old time, like when i do not boot emulator, it freeze time, but i don't know what make time display so different on both devices

Please help, thank a lots

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Don’t worry it’s normal it’s just broken on android. Look at moment.js library it works fine on iOS and android.

  Moment(date).format('DD/MM/YYYY, hh:mm:ss')
  Output is 11/11/2019, 1:17:00
about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda