Return-Path: Delivered-To: apmail-apr-commits-archive@www.apache.org Received: (qmail 12468 invoked from network); 25 Jul 2007 02:03:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Jul 2007 02:03:36 -0000 Received: (qmail 32692 invoked by uid 500); 25 Jul 2007 02:03:37 -0000 Delivered-To: apmail-apr-commits-archive@apr.apache.org Received: (qmail 32584 invoked by uid 500); 25 Jul 2007 02:03:37 -0000 Mailing-List: contact commits-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: Reply-To: dev@apr.apache.org List-Id: Delivered-To: mailing list commits@apr.apache.org Received: (qmail 32573 invoked by uid 99); 25 Jul 2007 02:03:37 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jul 2007 19:03:37 -0700 X-ASF-Spam-Status: No, hits=-99.5 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jul 2007 19:03:35 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id 197AB1A981A; Tue, 24 Jul 2007 19:03:15 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r559279 - in /apr/apr/branches/0.9.x: CHANGES time/win32/time.c Date: Wed, 25 Jul 2007 02:03:14 -0000 To: commits@apr.apache.org From: davi@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20070725020315.197AB1A981A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: davi Date: Tue Jul 24 19:03:14 2007 New Revision: 559279 URL: http://svn.apache.org/viewvc?view=rev&rev=559279 Log: Backport revision 558902 from trunk: SystemTimeToAprExpTime dayoffset summation is wrong, June is 30 days. PR: 42953 Modified: apr/apr/branches/0.9.x/CHANGES apr/apr/branches/0.9.x/time/win32/time.c Modified: apr/apr/branches/0.9.x/CHANGES URL: http://svn.apache.org/viewvc/apr/apr/branches/0.9.x/CHANGES?view=diff&rev=559279&r1=559278&r2=559279 ============================================================================== --- apr/apr/branches/0.9.x/CHANGES (original) +++ apr/apr/branches/0.9.x/CHANGES Tue Jul 24 19:03:14 2007 @@ -1,6 +1,7 @@ Changes with APR 0.9.15 - + *) Fix day of year (tm_day) calculation for July. The bug only affects + Windows builds. PR 42953. [Davi Arnaut] Changes with APR 0.9.14 Modified: apr/apr/branches/0.9.x/time/win32/time.c URL: http://svn.apache.org/viewvc/apr/apr/branches/0.9.x/time/win32/time.c?view=diff&rev=559279&r1=559278&r2=559279 ============================================================================== --- apr/apr/branches/0.9.x/time/win32/time.c (original) +++ apr/apr/branches/0.9.x/time/win32/time.c Tue Jul 24 19:03:14 2007 @@ -52,7 +52,7 @@ static void SystemTimeToAprExpTime(apr_time_exp_t *xt, SYSTEMTIME *tm) { static const int dayoffset[12] = - {0, 31, 59, 90, 120, 151, 182, 212, 243, 273, 304, 334}; + {0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334}; /* Note; the caller is responsible for filling in detailed tm_usec, * tm_gmtoff and tm_isdst data when applicable.