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.
-
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?
-
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.
-
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?
-
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?
-
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!