I don’t understand what the times are that are returned in forecasts.
guard let (current, hourly, daily) = try? await weatherService.weather(for: location, including: .current, .hourly, .daily(startDate: startDate, endDate: endDate))
I’m expecting this to be the time to which the forecast applies.
let utc = hourly.forecast[hour].date
When I convert it from UTC to local time I get something unusual for localDate
let dateFormatter = DateFormatter()
dateFormatter.timeZone = TimeZone.current
dateFormatter.dateFormat = "ha"
let localDateString = dateFormatter.string(from: utc)
What are these times? Shouldn’t the hourly be times increasing in one hour increments from startDate? Am I doing something incorrectly? Thanks