You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by tr...@apache.org on 2012/08/11 23:05:40 UTC
svn commit: r1372028 - in /apr/apr/branches/1.4.x: ./ CHANGES
time/win32/time.c
Author: trawick
Date: Sat Aug 11 21:05:39 2012
New Revision: 1372028
URL: http://svn.apache.org/viewvc?rev=1372028&view=rev
Log:
merge r1372022 from trunk:
apr_time_exp_*() on Windows: Fix error in the tm_yday field of
apr_time_exp_t for times within leap years.
PR: 53175
Modified:
apr/apr/branches/1.4.x/ (props changed)
apr/apr/branches/1.4.x/CHANGES
apr/apr/branches/1.4.x/time/win32/time.c
Propchange: apr/apr/branches/1.4.x/
------------------------------------------------------------------------------
Merged /apr/apr/trunk:r1372022
Modified: apr/apr/branches/1.4.x/CHANGES
URL: http://svn.apache.org/viewvc/apr/apr/branches/1.4.x/CHANGES?rev=1372028&r1=1372027&r2=1372028&view=diff
==============================================================================
--- apr/apr/branches/1.4.x/CHANGES [utf-8] (original)
+++ apr/apr/branches/1.4.x/CHANGES [utf-8] Sat Aug 11 21:05:39 2012
@@ -1,6 +1,10 @@
-*- coding: utf-8 -*-
Changes for APR 1.4.7
+ *) apr_time_exp_*() on Windows: Fix error in the tm_yday field of
+ apr_time_exp_t for times within leap years. PR 53175.
+ [Jeff Trawick]
+
*) Improve platform detection by updating config.guess and config.sub.
[Rainer Jung]
Modified: apr/apr/branches/1.4.x/time/win32/time.c
URL: http://svn.apache.org/viewvc/apr/apr/branches/1.4.x/time/win32/time.c?rev=1372028&r1=1372027&r2=1372028&view=diff
==============================================================================
--- apr/apr/branches/1.4.x/time/win32/time.c (original)
+++ apr/apr/branches/1.4.x/time/win32/time.c Sat Aug 11 21:05:39 2012
@@ -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)
{