Comment 6 for bug 728473

Revision history for this message
Blair Bonnett (bcb) wrote :

Just installed the version in the Oneiric Ocelot repository on a fresh install and I'm getting the sunrise/sunset reported an hour early as they're not taking our daylight savings into account. However, I think this is because EarthTools doesn't know about New Zealand DST:

Version: 11.05.31 'Cloudy 8'

Location information from gsettings: '2348327': {'google id': ',,,-43533333,172633333', 'full name': 'Christchurch, Canterbury, New Zealand', 'longitude': '172.6333333', 'label': 'Christchurch', 'latitude': '-43.5333333', 'yahoo id': u'NZXX0006', 'noaa id': 'woot'}

Timezone URL: http://www.earthtools.org/timezone-1.1/-43.5333333/172.6333333
DST = "Unknown" => dst = 0 in the code.

Sunrise/set URL: http://www.earthtools.org/sun/-43.5333333/172.6333333/20/11/99/0
<sunrise>04:48:59</sunrise>
<sunset>19:41:06</sunset>

If you force the DST (last parameter) of the sunrise/sunset URL to 1 then the correct times (5:48 and 20:41) are returned.

 As EarthTools seems to be the one causing the issue, I'm not sure what could be done to fix it in this indicator. Possibly a location option forcing DST to be on/off as appropriate? Or maybe an option to link a location to the system date & time which will have the correct DST setting?