cvs: pear /Services_Weather/Weather Weatherdotcom.php
| From: | Alexander Wirtz | Date: | Wed, 05 May 2004 22:45:02 +0000 |
| Subject: | cvs: pear /Services_Weather/Weather Weatherdotcom.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-19242@lists.php.net to get a copy of this message | ||
eru Wed May 5 18:45:02 2004 EDT
Modified files:
/pear/Services_Weather/Weather Weatherdotcom.php
Log:
o Switched update in forecastReturn-array to GMT, same as in weatherReturn
o Added updateRaw to weatherForecast-array
http://cvs.php.net/diff.php/pear/Services_Weather/Weather/Weatherdotcom.php?r1=1.39&r2=1.40&ty=u
Index: pear/Services_Weather/Weather/Weatherdotcom.php
diff -u pear/Services_Weather/Weather/Weatherdotcom.php:1.39
pear/Services_Weather/Weather/Weatherdotcom.php:1.40
--- pear/Services_Weather/Weather/Weatherdotcom.php:1.39 Sat May 1 08:49:26 2004
+++ pear/Services_Weather/Weather/Weatherdotcom.php Wed May 5 18:45:02 2004
@@ -16,7 +16,7 @@
// | Authors: Alexander Wirtz <alex@pc4p.net> |
// +----------------------------------------------------------------------+
//
-// $Id: Weatherdotcom.php,v 1.39 2004/05/01 12:49:26 eru Exp $
+// $Id: Weatherdotcom.php,v 1.40 2004/05/05 22:45:02 eru Exp $
/**
* @package Services_Weather
@@ -448,10 +448,11 @@
$forecastReturn["cache"] = "MISS";
}
- $update = implode(" ", array_slice(explode(" ",
$this->_forecast->lsup ), 0, 3));
+ $update = str_replace("Local Time", "", $this->_forecast->lsup);
- $forecastReturn["update"] = date($this->_dateFormat."
".$this->_timeFormat, strtotime($update));
- $forecastReturn["days"] = array();
+ $forecastReturn["update"] = gmdate($this->_dateFormat."
".$this->_timeFormat, strtotime($update));
+ $forecastReturn["updateRaw"] = $this->_forecast->lsup;
+ $forecastReturn["days"] = array();
for ($i = 0; $i < $days; $i++) {
$day = array(