cvs: pear /Services_Weather/Weather Metar.php

From: Date: Sat, 10 Jul 2004 00:20:59 +0000
Subject: cvs: pear /Services_Weather/Weather Metar.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-21693@lists.php.net to get a copy of this message
eru Fri Jul 9 20:20:59 2004 EDT Modified files: /pear/Services_Weather/Weather Metar.php Log: o Fixed $to in fmc (24:00 -> 00:00) http://cvs.php.net/diff.php/pear/Services_Weather/Weather/Metar.php?r1=1.61&r2=1.62&ty=u Index: pear/Services_Weather/Weather/Metar.php diff -u pear/Services_Weather/Weather/Metar.php:1.61 pear/Services_Weather/Weather/Metar.php:1.62 --- pear/Services_Weather/Weather/Metar.php:1.61 Fri Jul 9 19:41:25 2004 +++ pear/Services_Weather/Weather/Metar.php Fri Jul 9 20:20:59 2004 @@ -16,7 +16,7 @@ // | Authors: Alexander Wirtz <alex@pc4p.net> | // +----------------------------------------------------------------------+ // -// $Id: Metar.php,v 1.61 2004/07/09 23:41:25 eru Exp $ +// $Id: Metar.php,v 1.62 2004/07/10 00:20:59 eru Exp $ /** * @package Services_Weather @@ -1047,6 +1047,7 @@ if (preg_match("/^(\d{2})(\d{2})$/i", $taf[$i + 1], $lresult)) { $from = $lresult[1].":00"; $to = $lresult[2].":00"; + $to = ($to == "24:00") ? "00:00" : $to; // Same as above, we have a time for this FMC from our TAF, // increase field-counter $i++;

« previous php.pear.cvs (#21693) next »