[PEAR-BUG] Req #17856 [Opn->Csd]: getWeatherIcon() / time issue

[email protected]
Newsgroups php.pear.bugs
Message-ID <[email protected]>
Edit report at http://pear.php.net/bugs/bug.php?id=17856&edit=1

 ID:               17856
 Updated by:       [email protected]
 Reported By:      pear at schmager dot de
 Summary:          getWeatherIcon() / time issue
-Status:           Open
+Status:           Closed
 Type:             Feature/Change Request
 Package:          Services_Weather
 Operating System: Debian/Lenny
 Package Version:  1.4.5
 PHP Version:      Irrelevant
-Assigned To:      
+Assigned To:      eru
 Roadmap Versions: 
 New Comment:

-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 pear.php.net
by the end of next Sunday (CET).

If this was a problem with the pear.php.net 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


Previous Comments:
------------------------------------------------------------------------

[2010-09-09 13:49:28] 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.

------------------------------------------------------------------------


-- 
Edit this bug report at http://pear.php.net/bugs/bug.php?id=17856&edit=1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.