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

63
Views
timezone conversion based on user's timezone

I'm working on an app that returns EST time. I want to convert EST time to the user's local timezone.

eg: EST: 2022-03-23T21:00:00.000Z

PKT: 2022-03-24T06:00:00.000Z

Sydeny: 2022-03-24T12:00:00.000Z

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

0

I think time zones will be selected by default with your location ( local one ). However to convert it into another one you can use moment js library.

const moment = require('moment-timezone')

const start = moment.tz("2021-12-08T10:00:00", "UTC") // original timezone

console.log(start.tz("America/Los_Angeles").format())
console.log(start.tz("Asia/Calcutta").format())
console.log(start.tz("Canada/Eastern").format())
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!