Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

152
Vistas
Calculate duration of two dates, first one is utc date, second is browser's local gmt time (London timezone)

I have an issue with the calculation of duration between two dates, one is UTC London time, and the second one is the browser's local time.

first date is 2022-04-20T08:29:55.614 (server's UTC time) second one is 2022-04-20T09:44:16.234 (browser's local time)

I calculate the difference by using the moment:

const differenceDate = moment.duration(currentDate.diff(startupDateTime))

The difference should be 14 minutes, but the result is 1 hour and 14 minutes.

I tried to use the moment-timezone library but the result was almost the same.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda