~nmurphy/do-plugins/batteryFullInvisible

« back to all changes in this revision

Viewing changes to WeatherDocklet/src/Sources/WeatherChannelWeatherSource.cs

  • Committer: Robert Dyer
  • Date: 2009-06-29 20:03:59 UTC
  • Revision ID: rdyer@guyute-20090629200359-ipuohctn9hdkq96l
fixing sunrise/set for weather source

Show diffs side-by-side

added added

removed removed

Lines of Context:
149
149
                        Latitude = dbl;
150
150
                        Double.TryParse (item.SelectSingleNode ("lon").InnerText, out dbl);
151
151
                        Longitude = dbl;
152
 
                        SunRise = WeatherController.Sunrise(Latitude, Longitude);
153
 
                        SunSet = WeatherController.Sunset(Latitude, Longitude);
 
152
                        SunRise = DateTime.Parse (item.SelectSingleNode ("sunr").InnerText);
 
153
                        SunSet = DateTime.Parse (item.SelectSingleNode ("suns").InnerText);
154
154
                        
155
155
                        nodelist = xml.SelectNodes ("weather/cc");
156
156
                        item = nodelist.Item (0);