~gnome15-team/gnome15/trunk

« back to all changes in this revision

Viewing changes to gnome15-plugins/src/weather-yahoo/weather-yahoo.py

  • Committer: tanktarta
  • Date: 2012-11-24 10:27:36 UTC
  • Revision ID: tanktarta-20121124102736-0drhasy3jdn862wx
0.9.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
191
191
            class TZ(datetime.tzinfo):
192
192
                def dst(self, dt):
193
193
                    return datetime.timedelta(0)
194
 
                    
195
 
                def utcoffset(self, dt): return datetime.timedelta(seconds=dxt[9:10])
 
194
                
 
195
                def tzname(self, dt):
 
196
                    return dxt[9]
 
197
                
 
198
                def utcoffset(self, dt): return datetime.timedelta(seconds=dxt[9])
196
199
            observed_datetime = datetime.datetime(*dxt[:7],  tzinfo=TZ())
197
200
        
198
201
        # Forecasts (we only get 2 from yahoo)