Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

218
Views
Muestra el reloj de tiempo EST en html, no el tiempo de la computadora

Quiero agregar un reloj a mi sitio web que muestre solo la hora del Este. Actualmente no estoy en la zona horaria EST y el reloj muestra mi hora local. No pude encontrar una referencia que haga eso. Algunos estaban discutiendo la conexión a php / ajax sever time ... etc., con lo que no estoy familiarizado.

A continuación se muestran los códigos html y js que estoy usando.

 function showTime(){ var date = new Date(); var h = date.getHours(); var m = date.getMinutes(); h = (h < 10) ? "0" + h : h; m = (m < 10) ? "0" + m : m; var time = h + ":" + m; document.getElementById("MyClockDisplay").innerText = time; document.getElementById("MyClockDisplay").innerContent = time; setTimeout(showTime, 1000); } showTime();
 <body> <div id="MyClockDisplay"></div> <script src="./src/clock.js"></script> </body>

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!