WeatherKit REST Api Date questions

Hello all, I am seeing some weird behavior with the weatherkit rest API, and I want to make sure I understand what should be passed in for each parameter and what is being returned.

  1. For DailyStart and DailyEnd parameters, should this date be relative to the timezone being passed in, or should it be passed in as a UTC time. If UTC, what is the point of passing in a timezone?

  2. Same questions for HourlyStart and HourlyEnd. Should we pass in a value for the specified timezone, or should we pass in the hours in UTC.

  3. Are all dates returned in the JSON always specified in UTC or are they returned already adjusted for offset for the timezone you passed in? For example, if I pass in Pacific/Los_angeles and get back 2023-02-16T08:00:00Z in one of the results, is that value in UTC, meaning I have to apply the offset of -8 or is that 8 AM Los Angeles time already?

  4. If I pass in all the dates as UTC, it doesn't seem to matter if I pass in a timezone or not, the json result is the same, for both daily and hourly results. Does that sound correct?

  5. If I request and hourly forecast and a daily forecast for a single day in the past in weatherkit, for example 11-01-2022, should the results match exactly to the same request for the same day in dark sky? I am trying to determine if the results are different between the two services, or they should be the same, and I have incorrectly made assumptions about how to pass the dates in.

Any explanation (or external link to one) would be greatly appreciated, thanks!

See this thread for some discussion of date handling in WeatherKit.

For me all day today I get 404 even it worked yesterday and JWT is correct I have the same question about timezones as it's confusing and no info on it in documentation.

WeatherKit REST Api Date questions
 
 
Q