Comment 7 for bug 770652

Revision history for this message
Panagiotis Skintzos (ph7) wrote :

The problem is that we fed earthtools.org api with wrong coordinates (not the original ones from geonames, but transformed ones for google).
I made a fix for cloudy.
It also fixes two other problems:
- the daylight savings status was not taken correctly into account
- the day/night calculation was done with system local time not with the location's local time.

Important: For this to work, the location has to be deleted and added again (because the wrong coordinates are saved in the location details)

For foggy I'll update the branch later.
I'll make it so that we fetch the sunrise/sunset only once per day per location.

The real problem with earthtools is the limited coverage. If I remember right Gnome time applet had builtin sunrise/sunset calculation. I'll look into that.