[ phpweather-Bugs-871193 ] time always reported as 03:14
Brought to you by:
iridium
From: SourceForge.net <no...@so...> - 2004-01-05 19:51:43
|
Bugs item #871193, was opened at 2004-01-05 19:51 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=377952&aid=871193&group_id=23245 Category: Output Group: phpweather-2.x Status: Open Priority: 5 Submitted By: Neil Millard (noddycr) Assigned to: Nobody/Anonymous (nobody) Summary: time always reported as 03:14 Initial Comment: The time from print_pretty_time was always output as 03:14 regardless of the metar. This is because the $time variable is stored in standard mysql datestamp and the function gmdate requires a unix date stamp. to fix this, just insert this code where the line gmdate is. $timestring = substr($time,0,8)." ". substr($time,8,2).":". substr($time,10,2).":". substr($time,12,2); $gmtime = gmdate('H:i', strtotime($timestring)); Regards Noddycr ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=377952&aid=871193&group_id=23245 |