[Phphtmllib-devel] SF.net SVN: phphtmllib:[3186] trunk/open2300/lib/modules/home/widgets/ MetarText
Status: Beta
Brought to you by:
hemna
From: <he...@us...> - 2008-11-07 07:03:34
|
Revision: 3186 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3186&view=rev Author: hemna Date: 2008-11-07 07:03:31 +0000 (Fri, 07 Nov 2008) Log Message: ----------- more hacking Modified Paths: -------------- trunk/open2300/lib/modules/home/widgets/MetarTextCurrentConditions.inc Modified: trunk/open2300/lib/modules/home/widgets/MetarTextCurrentConditions.inc =================================================================== --- trunk/open2300/lib/modules/home/widgets/MetarTextCurrentConditions.inc 2008-11-07 06:54:42 UTC (rev 3185) +++ trunk/open2300/lib/modules/home/widgets/MetarTextCurrentConditions.inc 2008-11-07 07:03:31 UTC (rev 3186) @@ -43,7 +43,7 @@ $stmt = $db->queryBindOneRowCache("Select min(temp_out) as low, max(temp_out) as high from weather where datetime like :date", array(":date" => $today.'%')); //if (class_exists("DateTime")) { - if (FALSE) { + if ($GLOBALS['config']->get('has_date_time', FALSE)) { $cur_date = new DateTime($this->wx->get_datetime()); $cur_date->setTimezone(new DateTimeZone("UTC")); $metar .= " ".$cur_date->format("dHi")."Z"; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |