Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.4.7

Request #17856 getWeatherIcon() / time issue
Submitted: 2010-09-09 17:49 UTC
From: jan_schmager Assigned: eru
Status: Closed Package: Services_Weather (version 1.4.5)
PHP Version: Irrelevant OS: Debian/Lenny
Roadmaps: (Not assigned)    

 [2010-09-09 17:49 UTC] jan_schmager (Jan Schmager)
Description: ------------ For the time beeing function getWeatherIcon() only works with the current time. If you analyse older data you might get a wrong icon number. Example: Metar data is from 3 in the night and weather condition is clear night. If you analyse it at 10 a.m. the function returns icon code 32. Expected result is 31. My suggestion: add an optional value, e.g. $metarTime and use it - if set and not zero - for time calculation in line 1000, 1001 and 1002.


 [2011-07-26 21:01 UTC] eru (Alexander Wirtz)
-Status: Open +Status: Closed -Assigned To: +Assigned To: eru
This bug has been fixed in SVN. If this was a documentation problem, the fix will appear on by the end of next Sunday (CET). If this was a problem with the website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better. Thanks for your suggestion, I've added it to the trunk, please test! Best, Alexander