sunrise and sunset from google are in UTC, not local time
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Weather Indicator |
New
|
Undecided
|
Unassigned |
Bug Description
When the data source is set to Google, the weather indicator shows 5:54 for the sunrise and 18:01 for sunset. This does not match the actual sun. The Yahoo datasource is a better approximation for me: 6:31 and 20:51.
It looks like the Google weather report is off by roughly 2 hours, which makes sense, because my location is set to Rotterdam (UTC+2).
Steps to reproduce:
[1] Set the weather data source to Google
[2] Check the sunset and sunrise time.
[3] Wait until either time found in step [2]
[4] Look outside, and verify whether the horizon intersects the sun.
Expected result:
* Sun and horizon intersect
Actual result:
* Sun is not yet visible at indicated sunrise
* Sun is several degrees above the horizon at indicated sunset
Proposed solutions:
* Temporarilly change rotational speed of the earth so synchronize sunrise and sunset with _my_ location.
* Apply UTC offset calculation to Google's results
Affected version:
Weather Indicator 11.04.10 'Cloudy'
description: | updated |
description: | updated |
I've done some tracing, and I've determined that the actual problem is with earthtools; it doesn't correcly figure out my timezone:
http:// www.earthtools. org/sun/ 51922500/ 4479167/ 22/4/0/ 1 and www.earthtools. org/sun/ 51922500/ 4479167/ 22/4/99/ 1 yield the same results, even though Rotterdam uses UTC+2 in summertime.
http://
I suggest using 0 for dst offset, interpreting the time as UTC, and converting it to local time. If I have time available I'll try to concoct a patch later today.