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

96
Views
Why is Google App Engine parsing different time?

My application heavily relies on time calculation and I read online that GCP App Engine uses UTC time zone. So I made these calculations and on my local dev, the calcTime is totally different than App Engine, App Engine is giving me a big -negative number I'm not sure why??

    const endTime = Math.floor(new Date(filteredTimeLeft).getTime() / 1000);
const convertSec = Number(coin.seconds);
const dateNow = Math.floor(Date.now() / 1000);
const calcTime = endTime - convertSec - dateNow;

Isn't my code suppose to work universally , independent where the server is located at?

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!