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

117
Views
Problem with invalid UTC timestamp in query to Stormglass weather API

I have following JavaScript code with sending request to Stormglass weather API:

const lat = 58.7984;
const lng = 17.8081;
const params = 'waveHeight,airTemperature';

const start = new Date("2022.02.28,  16:00").getTime();
console.log(start);

fetch(`https://api.stormglass.io/v2/weather/point?lat=${lat}&lng=${lng}&start=${start}&params=${params}`, {
  headers: {
    'Authorization': '<api_key>'
  }
}).then((response) => response.json()).then((jsonData) => {
  console.log(jsonData);
});

In response I get error message "1646046000000 is not a valid UTC timestamp". According to API parameter 'start' should be Timestamp in UTC for first forecast hour - UNIX format or URL encoded ISO format. I suppose my timestamp is correct. What could be the problem here?

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!