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

187
Vistas
Have Javascript recognize YYYYmmdd in +5:00 Time Zone

thanks for taking the time to read my question.

At a high level I have a project that receives a file every day whose name ends in a date formatted yyyymmdd (file_20211118.xml would be today's file). The project reads data from the file and displays it on the web.

So the project only updates on the next day and after it receives a new file I have some javascript that looks like this

var todaysDateyyyymmdd = new Date().toISOString().slice(0,10).replace(/-/g,"");

xhttp.open("GET", "file_" + todaysDateyyyymmdd + ".xml", true);

I am in the EST time zone. The process works great for me until 7:00PM EST when everything disappears from the web. I am assuming it is because todaysDateyyyymmdd no longer equals the date on the file (maybe even specific to my browser time). I just can't figure out what to do to extend todaysDateyyyymmdd +5:00.

Any ideas would be greatly appreciated.

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