Hi! Somehow I only just noticed that sunrise and sunset times for OpenWeatherMap have been broken in 3.5.2 - they both display the last updated time. 3.5.1 and older are fine.
The issue appears to be some missing date = NSDate(timeIntervalSince1970: TimeInterval(unixdate)) lines in OpenWeatherMapAPI.swift on lines 211 and 217.
Great find, especially pointing to the lines of code. Feel free to fix it!
What I've changed (for now)
LIne 204
var date = NSDate(timeIntervalSince1970: TimeInterval(unixdate))
Add lines 213 and 220 (after unixdate = Int(sunXXX) )
date = NSDate(timeIntervalSince1970: TimeInterval(unixdate))
Ed
Last edit: EdwardD20 2022-12-27