Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:14421 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 92848 invoked by uid 1010); 24 Jan 2005 08:14:58 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 92318 invoked from network); 24 Jan 2005 08:14:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Jan 2005 08:14:55 -0000 X-Host-Fingerprint: 154.32.109.6 relay3.mail.uk.psi.net Solaris 9 Received: from ([154.32.109.6:49649] helo=relay3.mail.uk.psi.net) by pb1.pair.com (ecelerity HEAD (r4105:4106)) with SMTP id 5B/84-33390-77EA4F14 for ; Mon, 24 Jan 2005 03:14:47 -0500 Received: from mail.uag.co.uk ([193.123.249.154] helo=2krlwwmsw1.royal-london.co.uk) by relay3.mail.uk.psi.net with esmtp (Exim 4.30) id 1CszMy-0004FK-G4 for internals@lists.php.net; Mon, 24 Jan 2005 08:14:44 +0000 Received: from 2krlwwex01.royallondon.royallondongroup.com (unverified) by 2krlwwmsw1.royal-london.co.uk (Content Technologies SMTPRS 4.3.12) with ESMTP id ; Mon, 24 Jan 2005 08:21:11 +0000 Received: from 2krlwwex02.royallondon.royallondongroup.com ([172.18.128.119]) by 2krlwwex01.royallondon.royallondongroup.com with Microsoft SMTPSVC(5.0.2195.6713); Mon, 24 Jan 2005 08:14:27 +0000 X-MimeOLE: Produced By Microsoft Exchange V6.0.6556.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Date: Mon, 24 Jan 2005 08:14:26 -0000 Message-ID: <5A9A683C389FE34AB92155BB46D0D20B02699BBC@2krlwwex02.royallondon.royallondongroup.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [PHP-DEV] Patch for bug 29334 Daylight Savings Win32 Thread-Index: AcUBz2YDcyMS+mLUSda88GdItB9Q2gAHTnqw To: "Jani Taskinen" Cc: X-OriginalArrivalTime: 24 Jan 2005 08:14:27.0066 (UTC) FILETIME=[B895C5A0:01C501EC] Subject: RE: [PHP-DEV] Patch for bug 29334 Daylight Savings Win32 From: John.Carter@royal-london.co.uk ("Carter, John") Not sure about removing the comment from the bug report as someone might = need it as a clue, surely it would have been better to just addd your = comment and leave mine intact. Jani, are you going to post a real patch? I'm not a C programmer (life's = too short etc) - I'd probably get it wrong again. John. -----Original Message----- From: Jani Taskinen [mailto:sniper@iki.fi] Sent: 24 January 2005 04:44 To: Carter, John Cc: internals@lists.php.net Subject: Re: [PHP-DEV] Patch for bug 29334 Daylight Savings Win32 This "fix" is not very ideal considering this note about tm_isdst = property: "Positive value if daylight saving time is in effect; 0 if = daylight saving time is not in effect; negative value if status of = daylight saving time is unknown. If the TZ environment variable is set, = the C run-time library assumes rules appropriate to the United States = for implementing the calculation of daylight-saving time (DST)." In case the status of dst is unknown, you'd be removing 1 or more hours from the time.. --Jani p.s. I removed this patch from the bug report. On Fri, 14 Jan 2005, Carter, John wrote: > Hi, > > This bug's been open a while (since July). I placed a small patch in = the comments in October (repeated below); can someone review and commit = please? > > John. > > patch to win32 sendmail.c: > > --- old.c 2004-09-08 21:33:17.640625000 +0100 > +++ new.c 2004-09-08 21:39:06.890625000 +0100 > @@ -684,6 +684,7 @@ > } > zoneh /=3D (60 * 60); > zonem =3D (abs(_timezone) / 60) - (zoneh * 60); > + zoneh +=3D tm->tm_isdst; > > > if(!xheaders || !strstr(headers_lc, "date:")){ > > > John Carter > Developer, Integro project > Royal London > (44) 1625 605735 > john.carter@royal-london.co.uk > > > > The contents of this e-mail are confidential and for the addressee = only. > If you are not the addressee you should not print, copy or distribute > this e-mail or use it or its contents or copy or publish its contents > to any other person. If you have received this e-mail in error please > notify us and delete it from your system. > > The Royal London Mutual Insurance Society Limited for life and pension > products. Registered in England No. 99064. Registered Office: > 55 Gracechurch Street, London, EC3V 0RL. Royal London Asset Management = Limited > for investment management services. Registered in England No. 2244297. > Registered Office: 55 Gracechurch Street, London, EC3V 0UF. > Royal London Savings Limited for Individual Savings Accounts. > Registered in England No. 3642633. Registered Office: 55 Gracechurch = Street, > London, EC3V 0RL. Royal London Unit Trust Managers Limited > for unit trusts. Registered in England No. 2372439. > Registered Office: 55 Gracechurch Street, London, EC3V 0UF. > All these companies are authorised and regulated by the Financial = Services Authority. > >