sunrise and sunset from google are in UTC, not local time

Bug #768843 reported by Ondergetekende
This bug report is a duplicate of:  Bug #770652: sunrise and sunset info incorrect. Edit Remove
10
This bug affects 2 people
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'

Ondergetekende (kvdveer)
description: updated
description: updated
Revision history for this message
Ondergetekende (kvdveer) wrote :

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
http://www.earthtools.org/sun/51922500/4479167/22/4/99/1 yield the same results, even though Rotterdam uses UTC+2 in summertime.

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.

Revision history for this message
Kurt (kurt-forrester-fec) wrote :

I am experiencing a similar problem.
Ubuntu 11.04 64 bit using google as the data source.
Attachment shows the google sunset figure is searched directly with google and the corresponding value through the applet.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.