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

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