Sunrise/sunset time being shown in DST

Bug #728473 reported by Aritchie
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Weather Indicator
Fix Released
Medium
Vadim Rutkovsky

Bug Description

Ok as requested by email - the applet is showing the minutes correctly from www.earthtools.org but the indicator is showing it 1 hour ahead. The sunrise reported for my town by earthtools is 06:40 am but the weather applet reports 07:40 which actually for my area would be DST and it is not DST yet.

Revision history for this message
Aritchie (aritchie) wrote :

I thought it might help better if I posted a screenshot. My timezone is set correctly.

Revision history for this message
Aritchie (aritchie) wrote :

That first screenshot I posted was for the wrong town - sorry. This is for the correct town in applets' settings.

Changed in weather-indicator:
importance: Undecided → Medium
milestone: none → cloudy
status: New → Confirmed
Changed in weather-indicator:
status: Confirmed → In Progress
Revision history for this message
Vadim Rutkovsky (roignac) wrote :

Fixed in the bzr210 package in Unstable PPA

Changed in weather-indicator:
assignee: nobody → Vadim Rutkovsky (roignac)
status: In Progress → Fix Committed
Changed in weather-indicator:
status: Fix Committed → Fix Released
Revision history for this message
mvario (mvario) wrote :

I'm using 11.05.01 'Cloudy 6' and the sunrise/sunset times are an hour off

Revision history for this message
Shadow Mage (x-shadow-mage-x) wrote :

I'm using indicator-weather 11.05.31-0ubuntu2 on Ubuntu 11.10 (Oneiric Ocelot) and I'm experiencing this issue (sunrise/sunset times are off by an hour).

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?

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

Other bug subscribers

Related questions

Remote bug watches

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