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

75
Vistas
Let user change time and date with Moment or other library
  • I am working on a Electron react app for a device.
  • On the device it displays the current time and date.
  • admins can change the timezone and/or edit the current Date and Time.
  • Timezones are easy with moment-timezone.
  • I have a simple 10 second interval to update the time using moment().tz("timZOne").format(MM/DD/YYY) etc..
  • What I don't understand is how I would go about letting a user change the time and date and have the clock (moment) update from that time forward.
  • I don't think this is possible with moment.js
  • Is this something that needs to be handled by the Back-End or can I handle this from the Front-End

TLDR:

  • currentTime from moment() 10:30AM --updated every ten seconds
  • user Changes currentTime to 9:30am --start keeping time from 9:30AM onwards
  • same Idea with Dates -- if the user changes the currentDate I want my application to start keeping track of time and date from the users inputted date or time.
  • Not looking for help with time zones. I want the functionality stated above. Users can already change time zones flawlessly.
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