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

270
Visualizações
Angular - Difference between two dates wrong timezone

I'm trying to obtain the duration of something. I have the start and end time in ms so I do the diff between the two values. But when I try to show it in HH:mm:ss format the timezone is different.

Start time : 1658150216000 | 18.07.2022 15:16:56
End time : 1658160216000 | 18.07.2022 18:03:36
Diff : 10000000 | (should be) 02:46:40 | (shows) 03:46:40

The first two dates are created with GMT+0200 but the diff time is created with GMT+0100, and I don' get to modify this timezone.

I also tried to parse just the number but gets the same result {{ 10000000 | date:'HH:mm:ss' }}

Different time zones

about 4 years ago · Juan Pablo Isaza
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