Bugs item #871193, was opened at 2004-01-05 20:51
Message generated for change (Comment added) made by gimpster
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: Closed
Priority: 5
Submitted By: Neil Millard (noddycr)
>Assigned to: Martin Geisler (gimpster)
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: Martin Geisler (gimpster)
Date: 2004-02-11 15:19
Message:
Logged In: YES
user_id=104098
Sorry about this... it is fixed in version 2.2.1.
----------------------------------------------------------------------
Comment By: Brent Stolle (brentstolle)
Date: 2004-01-15 19: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
|