isDayOrNight misplaces San Francisco (badly!)
For some reason when I pick San Francisco (or San Francisco, USA) the test shows me:
And of course the sensor misbehaves accordingly....
Note that other places in the vicinity (Orinda, Walnut Creek, ..) work fine.
Also the weather sensor does not have the same problem: