apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r558902 - /apr/apr/trunk/time/win32/time.c
Date Tue, 24 Jul 2007 00:34:30 GMT
Author: davi
Date: Mon Jul 23 17:34:25 2007
New Revision: 558902

URL: http://svn.apache.org/viewvc?view=rev&rev=558902
Log:
SystemTimeToAprExpTime dayoffset summation is wrong, June is 30 days.

PR: 42953

Modified:
    apr/apr/trunk/time/win32/time.c

Modified: apr/apr/trunk/time/win32/time.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/time/win32/time.c?view=diff&rev=558902&r1=558901&r2=558902
==============================================================================
--- apr/apr/trunk/time/win32/time.c (original)
+++ apr/apr/trunk/time/win32/time.c Mon Jul 23 17:34:25 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