Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:19619 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 5284 invoked by uid 1010); 14 Oct 2005 22:24:02 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 5269 invoked from network); 14 Oct 2005 22:24:02 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Oct 2005 22:24:02 -0000 X-Host-Fingerprint: 212.55.154.23 relay3.ptmail.sapo.pt Linux 2.4/2.6 Received: from ([212.55.154.23:39909] helo=sapo.pt) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id D9/C2-12184-FFF20534 for ; Fri, 14 Oct 2005 18:23:59 -0400 Received: (qmail 17149 invoked from network); 14 Oct 2005 22:23:55 -0000 Received: from unknown (HELO sapo.pt) (10.134.35.153) by relay3 with SMTP; 14 Oct 2005 22:23:55 -0000 Received: (qmail 3433 invoked from network); 14 Oct 2005 22:23:54 -0000 X-AntiVirus: PTMail-AV 0.3.87 X-Virus-Status: Clean (0.16148 seconds) Received: from unknown (HELO pc07653) (nunoplopes@sapo.pt@[81.193.157.91]) (envelope-sender ) by mta3 (qmail-ldap-1.03) with SMTP for ; 14 Oct 2005 22:23:54 -0000 Message-ID: <001501c5d10d$fb343590$0100a8c0@pc07653> To: Cc: "PHPdev" Date: Fri, 14 Oct 2005 23:24:02 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="Windows-1252"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2670 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 Subject: report of date functions on windows From: nlopess@php.net ("Nuno Lopes") Hi, In the last hours I've been debugging and testing the new implementation of the date related functions on windows. I've found some little problems: 1) timelib_tz_lookup_table defines the gmtoffset as an int, but in the fallback table there are some decimals numbers. So, either remove those entries or change the struct to hold a float. This also applies to the timelib_timezone_id_from_abbr() function, which receives a long, instead of a float. 2) in the guess_timezone() function, the offset maths are being truncated. the explicit cast to float doesn't help either, because it happens before reaching there. 3) the fallback table isn't complete (and had an error). I've added a couple more tzs. 4) I've fixed the problem I've reported earlier with timezones that don't have DST settings (or when the user disables DST in control panel). A patch to fix 2, 3 and 4: http://mega.ist.utl.pt/~ncpl/php_win_date2.txt Apart of these little issues, the new code is working perfectly! Nuno