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

363
Visualizações
Why new Date() with `T17:00:00.000Z` is returning the next date?

When I try this new Date('2015-01-25T17:00:00.000Z') it will returning the next date Jan 26 2015 00:00:00, this is an expected behaviour for me, but why it is like this?

Is there any explanation from this js behaviour when using TZ with value of OO:OO:OO.

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

0

The Z at the very end means "Zulu Time" which is another word for UTC.

The result you see in your console is the time in your current timezone. You are probably 5 hours ahead of UTC.

If you remove the Z, the output you get is the same as what you put in, because Javascript will use local time by default.

about 4 years ago · Juan Pablo Isaza Relatório

0

UTC (Zulu) time is '2015-01-25T17:00:00.000Z'. The local time in Jakarta is UTC+7: Jan 26 2015 00:00:00.

See Time in Indonesia and ISO 8601.

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