[ phpweather-Bugs-871193 ] time always reported as 03:14
Brought to you by:
iridium
From: SourceForge.net <no...@so...> - 2004-01-15 18:05:39
|
Bugs item #871193, was opened at 2004-01-05 13:51 Message generated for change (Comment added) made by brentstolle 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 ---------------------------------------------------------------------- Comment By: Brent Stolle (brentstolle) Date: 2004-01-15 12:05 Message: Logged In: YES user_id=488777 which file is this in? I'm seeing the same time. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=377952&aid=871193&group_id=23245 |