cvs: pear /Services_Weather/Weather Metar.php
| From: | Alexander Wirtz | Date: | Sun, 05 Oct 2003 23:21:40 +0000 |
| Subject: | cvs: pear /Services_Weather/Weather Metar.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-13408@lists.php.net to get a copy of this message | ||
eru Sun Oct 5 19:21:40 2003 EDT
Modified files:
/pear/Services_Weather/Weather Metar.php
Log:
*Changed update time format
Index: pear/Services_Weather/Weather/Metar.php
diff -u pear/Services_Weather/Weather/Metar.php:1.9 pear/Services_Weather/Weather/Metar.php:1.10
--- pear/Services_Weather/Weather/Metar.php:1.9 Sun Oct 5 14:26:37 2003
+++ pear/Services_Weather/Weather/Metar.php Sun Oct 5 19:21:39 2003
@@ -16,7 +16,7 @@
// | Authors: Alexander Wirtz <alex@pc4p.net> |
// +----------------------------------------------------------------------+
//
-// $Id: Metar.php,v 1.9 2003/10/05 18:26:37 eru Exp $
+// $Id: Metar.php,v 1.10 2003/10/05 23:21:39 eru Exp $
require_once "Services/Weather/Common.php";
@@ -260,7 +260,7 @@
// Ok, we have correct data, start with parsing the first line for the last update
$weatherData = array();
$weatherData["station"] = $id;
- $weatherData["update"] = date( $this->_timeFormat,
strtotime(trim($data[0])) + date("Z") );
+ $weatherData["update"] = date($this->_dateFormat."
".$this->_timeFormat, strtotime(trim($data[0])) + date("Z"));
// and prepare the second line for stepping through
$metar = explode(" ", trim($data[1]));