[ phpweather-Bugs-1772823 ] tms_date2unix update for Ubuntu
Brought to you by:
iridium
From: SourceForge.net <no...@so...> - 2007-08-13 02:24:16
|
Bugs item #1772823, was opened at 2007-08-12 21:24 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=1772823&group_id=23245 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: PHP code Group: phpweather-2.x Status: Open Priority: 5 Private: No Submitted By: Jack Coats (servant) Assigned to: Nobody/Anonymous (nobody) Summary: tms_date2unix update for Ubuntu Initial Comment: I am using Ubuntu Feisty, and this routing was not returning the correct data. This was my correction to make it work on my system. This function was in the phpweather.php file: function tms_date2unix($tmp_tms) { /* joc20070812 - 2007-08-13 01:00:00 is format returned in Ubuntu Feisty */ return gmmktime(substr($tmp_tms,11,2),substr($tmp_tms,14,2),substr($tmp_tms,17,2),substr($tmp_tms,5,2),substr($tmp_tms,8,2),substr($tmp_tms,0,4)); /* return gmmktime(substr($tmp_tms,8,2),substr($tmp_tms,10,2),substr($tmp_tms,12,2),substr($tmp_tms,4,2),substr($tmp_tms,6,2),substr($tmp_tms,0,4)); */ } ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=377952&aid=1772823&group_id=23245 |