From 477215fe7db5277f44fe35c5a600597bbf957fa0 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Fri, 26 Aug 2011 07:23:42 +0000 Subject: * libc/time/mktm_r.c (_mktm_r): Fix previous fix. --- newlib/libc/time/mktm_r.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'newlib/libc/time') diff --git a/newlib/libc/time/mktm_r.c b/newlib/libc/time/mktm_r.c index 9b9b411..c0ab219 100644 --- a/newlib/libc/time/mktm_r.c +++ b/newlib/libc/time/mktm_r.c @@ -182,7 +182,7 @@ _DEFUN (_mktm_r, (tim_p, res, is_gmtime), { res->tm_mon = 11; res->tm_year -= 1; - res->tm_yday = 364 + isleap(res->tm_year); + res->tm_yday = 364 + isleap(res->tm_year + 1900); } res->tm_mday = ip[res->tm_mon]; } @@ -254,4 +254,3 @@ _DEFUN (__tzcalc_limits, (year), return 1; } - -- cgit v1.1