apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r559277 - in /apr/apr/branches/1.2.x: CHANGES time/win32/time.c
Date Wed, 25 Jul 2007 02:01:12 GMT
Author: davi
Date: Tue Jul 24 19:01:11 2007
New Revision: 559277

URL: http://svn.apache.org/viewvc?view=rev&rev=559277
Log:
Backport revision 558902 from trunk:

SystemTimeToAprExpTime dayoffset summation is wrong, June is 30 days.

PR: 42953

Modified:
    apr/apr/branches/1.2.x/CHANGES
    apr/apr/branches/1.2.x/time/win32/time.c

Modified: apr/apr/branches/1.2.x/CHANGES
URL: http://svn.apache.org/viewvc/apr/apr/branches/1.2.x/CHANGES?view=diff&rev=559277&r1=559276&r2=559277
==============================================================================
--- apr/apr/branches/1.2.x/CHANGES (original)
+++ apr/apr/branches/1.2.x/CHANGES Tue Jul 24 19:01:11 2007
@@ -1,5 +1,8 @@
 Changes for APR 1.2.10
 
+  *) Fix day of year (tm_day) calculation for July. The bug only affects
+     Windows builds.  PR 42953.  [Davi Arnaut]
+
   *) Fix LFS detection when building over NFS. The mode must be
      specified when O_CREAT is in the flags to open().
      PR 42821.  [Rainer Jung <rainer.jung kippdata.de>]

Modified: apr/apr/branches/1.2.x/time/win32/time.c
URL: http://svn.apache.org/viewvc/apr/apr/branches/1.2.x/time/win32/time.c?view=diff&rev=559277&r1=559276&r2=559277
==============================================================================
--- apr/apr/branches/1.2.x/time/win32/time.c (original)
+++ apr/apr/branches/1.2.x/time/win32/time.c Tue Jul 24 19:01:11 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.



Mime
View raw message