GNOME Bugzilla – Bug 688481
libgweather displays wrong sunset/sunrise times
Last modified: 2012-12-02 03:20:31 UTC
Opening gnome-clocks (git and stable - 0.1.4) I checked the Sunrise/Sunset times in Athens/Greece for today (Nov 16). Clocks says <Sunrise 7.05>, <Sunset 17.11>, when the actual times are <Sunrise 7.07>, <Sunset 17.12> I don't know if this is a bug or if there is a global standardization in these values, but these are the values that are given from Greek national services. If I knew the online services that libgweather uses to get the data, I could dig further.
libgweather does the math internally based on the geographical coordinates. The problem is that clocks uses the weather station (nearest airport, usually) as the location, while still displaying the city name, and the coordinates are slightly different, which causes the wrong data. Note: this is not a bug in clocks. The problem is that you can't retrieve a GWeatherLocation at an arbitrary level from the DB, only a weather station. It is a known bug, I just haven't found time to fix it yet.
Marking duplicate of another bug that is caused by the same underlying issue in libgweather, and has a patch solving this one too. Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find. *** This bug has been marked as a duplicate of bug 685433 ***