diff options
author | Jeff Trawick <trawick@apache.org> | 2012-08-11 20:42:45 +0000 |
---|---|---|
committer | Jeff Trawick <trawick@apache.org> | 2012-08-11 20:42:45 +0000 |
commit | 0e91bc00c197cfbb945a56aa8bcd9edb400ce68d (patch) | |
tree | 34b2834f6106c23462e3de1fc95a61b0aa399946 /time | |
parent | ddd1b3170e0628ae3c60241411aad1b13b5779e5 (diff) | |
download | apr-0e91bc00c197cfbb945a56aa8bcd9edb400ce68d.tar.gz |
apr_time_exp_*() on Windows: Fix error in the tm_yday field of
apr_time_exp_t for times within leap years.
PR: 53175
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1372022 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 ecf022854..234979935 100644 --- a/time/win32/time.c +++ b/time/win32/time.c @@ -32,7 +32,7 @@ /* Leap year is any year divisible by four, but not by 100 unless also * divisible by 400 */ -#define IsLeapYear(y) ((!(y % 4)) ? (((!(y % 400)) && (y % 100)) ? 1 : 0) : 0) +#define IsLeapYear(y) ((!(y % 4)) ? (((y % 400) && !(y % 100)) ? 0 : 1) : 0) static DWORD get_local_timezone(TIME_ZONE_INFORMATION **tzresult) { |