apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r559279 - in /apr/apr/branches/0.9.x: CHANGES time/win32/time.c
Date Wed, 25 Jul 2007 02:03:14 GMT
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.



Mime
View raw message