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

81
Visualizações
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 à 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