PricingBlog

Problem with the weather app api

  • awwwwwake-1225902660528504854

    awwwwwake

    1 year ago

    Hey, Raul here. I'm working on the assignment of the weather app, trying to "translate" the date to something legible, but seems that the output date is very wrong. Am I setting this up incorrectly? is there some other way to do it?

    thanks in advance!
    1225902660721573908-Screenshot_2024-04-05_at_23.17.05.jpg
    1
  • andreasmoller-1225923607574876200

    Andreas Møller

    1 year ago

    in js (and therefore in toddle) time stamps are in milliseconds
  • the api returns it in seconds
  • so multiply by 1000
    🫶1