The hardest part of this val was getting all the date manipulation (parsing, formatting, checking for today) to happen in the timezone of the location you're working with.
It was a big upgrade when I switched from JS Date to Luxon. It's convenient that the weatherGov library gives you a timezone!
There are a lot of lookups here that can be cached:
However, this val only runs once per day, and it doesn't really matter if it takes 500ms or 900ms.
The hardest part of this val was getting all the date manipulation (parsing, formatting, checking for today) to happen in the timezone of the location you're working with.
It was a big upgrade when I switched from JS Date to Luxon. It's convenient that the weatherGov library gives you a timezone!