summaryrefslogtreecommitdiff
path: root/time
diff options
context:
space:
mode:
authordavi <davi@13f79535-47bb-0310-9956-ffa450edef68>2007-07-24 00:34:25 +0000
committerdavi <davi@13f79535-47bb-0310-9956-ffa450edef68>2007-07-24 00:34:25 +0000
commit44ba566f4b7e13deab768317687c473fce40ebfa (patch)
tree0323ad95b0ffa8966cdc60d7eb50ba84debe2c33 /time
parent9cd59498fcf24de4305a190424d61d2a559ae7ab (diff)
downloadlibapr-44ba566f4b7e13deab768317687c473fce40ebfa.tar.gz
SystemTimeToAprExpTime dayoffset summation is wrong, June is 30 days.
PR: 42953 git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@558902 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'time')
-rw-r--r--time/win32/time.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/time/win32/time.c b/time/win32/time.c
index 9d2757972..9565fee93 100644
--- a/time/win32/time.c
+++ b/time/win32/time.c
@@ -52,7 +52,7 @@ static DWORD get_local_timezone(TIME_ZONE_INFORMATION **tzresult)
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.