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

121
Views
UTC date time why does time zone not work?

Why can't I take a time and set it to another zone? I want to take a string of a date and time that is static and change it to a different time zone and get result.

var d = new Date("2022-05-18T19:48:32.000+00:00");
d.toLocaleString('en-US', { timeZone: 'America/New_York' });

alert(d);

No matter what I do, it says my local computer time on my computer in Denver.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

d.toLocaleString('en-US', { timeZone: 'America/New_York' }); returns a string, but you're not setting it to a variable. Try d = d.toLocaleString('en-US', { timeZone: 'America/New_York' });

about 4 years ago · Juan Pablo Isaza Report
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!