diff options
author | Davi Arnaut <davi@apache.org> | 2007-07-24 00:34:25 +0000 |
---|---|---|
committer | Davi Arnaut <davi@apache.org> | 2007-07-24 00:34:25 +0000 |
commit | fa63d5a4f74eb981ecb417eb850807ba5ee71af6 (patch) | |
tree | 0323ad95b0ffa8966cdc60d7eb50ba84debe2c33 /time | |
parent | 8cdaaefa7e72671fb2cfad857185dfdf9a245697 (diff) | |
download | apr-fa63d5a4f74eb981ecb417eb850807ba5ee71af6.tar.gz |
SystemTimeToAprExpTime dayoffset summation is wrong, June is 30 days.
PR: 42953
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@558902 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'time')
-rw-r--r-- | time/win32/time.c | 2 |
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. |